Skip to content

Commit

Permalink
Fix visibility of RealtimeClock
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez committed Feb 6, 2020
1 parent 3524977 commit a85838d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions StyleCop.Analyzers.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
<Rule Id="IDE0003" Action="None" />
</Rules>
<Rules AnalyzerId="Microsoft.CodeQuality.Analyzers" RuleNamespace="Microsoft.CodeQuality.Analyzers">
<Rule Id="CA1710" Action="None" />
<Rule Id="CA1720" Action="Hidden" />
</Rules>
<Rules AnalyzerId="Microsoft.NetCore.Analyzers" RuleNamespace="Microsoft.NetCore.Analyzers">
Expand Down
2 changes: 1 addition & 1 deletion src/Swan.Lite/Swan.Lite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AssemblyName>Swan.Lite</AssemblyName>
<RootNamespace>Swan</RootNamespace>
<CodeAnalysisRuleSet>..\..\StyleCop.Analyzers.ruleset</CodeAnalysisRuleSet>
<Version>2.6.1</Version>
<Version>2.6.2</Version>
<Authors>Unosquare</Authors>
<PackageIconUrl>https://github.com/unosquare/swan/raw/master/swan-logo-32.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/unosquare/swan</PackageProjectUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/Swan/Diagnostics/RealtimeClock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// <summary>
/// A time measurement artifact.
/// </summary>
internal sealed class RealTimeClock : IDisposable
public sealed class RealTimeClock : IDisposable
{
private readonly Stopwatch _chrono = new Stopwatch();
private ISyncLocker? _locker = SyncLockerFactory.Create(useSlim: true);
Expand Down
3 changes: 2 additions & 1 deletion src/Swan/Extensions.MimeMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/// </summary>
public static class SmtpExtensions
{
private static readonly BindingFlags PrivateInstanceFlags = BindingFlags.Instance | BindingFlags.NonPublic;
private const BindingFlags PrivateInstanceFlags = BindingFlags.Instance | BindingFlags.NonPublic;

/// <summary>
/// The raw contents of this MailMessage as a MemoryStream.
Expand Down Expand Up @@ -38,6 +38,7 @@ public static MemoryStream ToMimeMessage(this MailMessage @this)
null,
Array.Empty<object>(),
null);

result.Position = 0;
return result;
}
Expand Down
8 changes: 5 additions & 3 deletions test/Swan.Test/ViewModelBaseTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public void ViewModelBaseInstance()
}

[Test]
public void ViewModelBaseNoChange() {
public void ViewModelBaseNoChange()
{
var view = new PersonView("Unosquare");
view.SetName("Unosquare");

Expand Down Expand Up @@ -72,7 +73,7 @@ public void SetName(string value)

public void SetProperties(string name, int age)
{
this._name = name;
_name = name;
NotifyPropertyChanged("name", "age");
}

Expand All @@ -84,7 +85,8 @@ public Task SetNameAsync(string value)
return Task.Run(() => { while (ChangeCounter <= actualCount) { } });
}

private void Handler(object sender, PropertyChangedEventArgs e) {
private void Handler(object sender, PropertyChangedEventArgs e)
{
ChangeCounter++;
}
}
Expand Down

0 comments on commit a85838d

Please sign in to comment.