Skip to content

Commit

Permalink
MA0132
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorBanai-Intuitive committed Jan 25, 2025
1 parent 42749ac commit 2683147
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ dotnet_diagnostic.SA1108.severity = silent
dotnet_diagnostic.SA1012.severity = error
dotnet_diagnostic.SA1500.severity = error
dotnet_diagnostic.SA1316.severity = error
csharp_prefer_system_threading_lock = true:suggestion
dotnet_diagnostic.MA0132.severity = error

[*.{cs,vb}]
dotnet_style_operator_placement_when_wrapping = beginning_of_line
Expand Down
8 changes: 4 additions & 4 deletions Analogy.LogViewer.Example/Analogy.LogViewer.Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>net9.0-windows;net8.0-windows;net48</TargetFrameworks>
<VersionPrefix>8.0.0.0</VersionPrefix>
<VersionSuffix>a1</VersionSuffix>
<VersionSuffix>a2</VersionSuffix>
<Authors>Lior Banai</Authors>
<Company>Analogy.LogViewer</Company>
<Product>Analogy.LogViewer.Example</Product>
Expand All @@ -20,9 +20,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Analogy.LogViewer.Interfaces" Version="8.0.0-a2" />
<PackageReference Include="Analogy.CommonUtilities" Version="8.0.0-a1" />
<PackageReference Include="Analogy.LogViewer.Template" Version="8.0.0-a1" />
<PackageReference Include="Analogy.LogViewer.Interfaces" Version="8.0.0" />
<PackageReference Include="Analogy.CommonUtilities" Version="8.0.0" />
<PackageReference Include="Analogy.LogViewer.Template" Version="8.0.0" />
<PackageReference Include="System.Resources.Extensions" Version="9.0.1" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public Task InitializeOnDemandPlotting(IAnalogyOnDemandPlottingInteractor onDema

private void SimulateData_Tick(object sender, EventArgs e)
{
var now = DateTime.Now;
var now = DateTimeOffset.Now;
AnalogyPlottingPointData d1 = new AnalogyPlottingPointData("series1", GenerateValue(counter), now);
AnalogyPlottingPointData d2 = new AnalogyPlottingPointData("series2", GenerateValue(counter + 50), now);
var list = new List<AnalogyPlottingPointData>(2) { d1, d2 };
Expand Down
2 changes: 1 addition & 1 deletion Analogy.LogViewer.Example/IAnalogy/ExamplePlotting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public Task StopPlotting()

private void SimulateData_Tick(object sender, EventArgs e)
{
var now = DateTime.Now;
var now = DateTimeOffset.Now;
AnalogyPlottingPointData d1 = new AnalogyPlottingPointData("series1", GenerateValue(counter), now);
OnNewPointData?.Invoke(this, d1);
AnalogyPlottingPointData d2 = new AnalogyPlottingPointData("series2", GenerateValue(counter + 50), now);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public override Task<IEnumerable<IAnalogyLogMessage>> FetchMessages(int pageNumb
ILogMessageCreatedHandler messagesHandler)
{
var filters = messages.Where(m =>
m.Date >= (filterCriteria.StartTime ?? DateTime.MinValue)
&& m.Date <= (filterCriteria.EndTime ?? DateTime.MaxValue));
m.Date >= (filterCriteria.StartTime ?? DateTimeOffset.MinValue)
&& m.Date <= (filterCriteria.EndTime ?? DateTimeOffset.MaxValue));

foreach (var include in filterCriteria.IncludeText)
{
Expand Down

0 comments on commit 2683147

Please sign in to comment.