Skip to content

Commit

Permalink
Maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
GeertvanHorrik committed Dec 11, 2023
1 parent a9616b1 commit 72f58ba
Show file tree
Hide file tree
Showing 34 changed files with 14 additions and 56 deletions.
6 changes: 1 addition & 5 deletions src/LogViewer.Tests/LogViewer.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="MSBuild.Sdk.Extras">
<PropertyGroup>
<TargetFrameworks>net6.0-windows</TargetFrameworks>
<TargetFrameworks>net8.0-windows</TargetFrameworks>
<AssemblyName>LogViewer.Tests</AssemblyName>
<RootNamespace>LogViewer.Tests</RootNamespace>
<DefaultLanguage>en-US</DefaultLanguage>
Expand Down Expand Up @@ -33,10 +33,6 @@
<PackageReference Include="PublicApiGenerator" Version="11.0.0" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="NETStandard.Library" Version="2.0.3" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\LogViewer\LogViewer.csproj" />
</ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/Behaviors/MultipleSelectionBehavior.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace LogViewer.Behaviors
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
Expand Down
2 changes: 1 addition & 1 deletion src/LogViewer/Commands/FileExitCommandContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public FileExitCommandContainer(ICommandManager commandManager, INavigationServi
_navigationService = navigationService;
}

protected override async Task ExecuteAsync(object parameter)
public override async Task ExecuteAsync(object parameter)
{
await _navigationService.CloseApplicationAsync();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
namespace LogViewer
{
using System;
using System.Linq;
using System.Text;

using Catel;
using System.Threading.Tasks;
using Catel.MVVM;

using LogViewer.Services;
Expand All @@ -26,9 +24,10 @@ public FilterCopyResultToClipboardCommandContainer(ICommandManager commandManage
_logTableService = logTableService;
}

protected override void Execute(object parameter)
public override async Task ExecuteAsync(object parameter)
{
var stringBuilder = new StringBuilder();

foreach (var record in _logTableService.LogTable.Records)
{
stringBuilder.AppendLine(record.ToString());
Expand Down
3 changes: 1 addition & 2 deletions src/LogViewer/Commands/FilterExportResultCommandContainer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace LogViewer
{
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;

Expand Down Expand Up @@ -32,7 +31,7 @@ public FilterExportResultCommandContainer(ICommandManager commandManager,
_logTableService = logTableService;
}

protected override async Task ExecuteAsync(object parameter)
public override async Task ExecuteAsync(object parameter)
{
var result = await _saveFileService.DetermineFileAsync(new DetermineSaveFileContext
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace LogViewer
{
using System;
using Catel;
using Catel.MVVM;
using Services;

Expand All @@ -17,7 +16,7 @@ public FilterResetSearchTemplateCommandContainer(ICommandManager commandManager,
_filterService = filterService;
}

protected override void Execute(object parameter)
public override void Execute(object parameter)
{
_filterService.Filter.SearchTemplate.TemplateString = string.Empty;
}
Expand Down
3 changes: 1 addition & 2 deletions src/LogViewer/Commands/HelpAboutCommandContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{
using System;
using System.Threading.Tasks;
using Catel;
using Catel.MVVM;
using Orchestra.Services;

Expand All @@ -18,7 +17,7 @@ public HelpAboutCommandContainer(ICommandManager commandManager, IAboutService a
_aboutService = aboutService;
}

protected override Task ExecuteAsync(object parameter)
public override Task ExecuteAsync(object parameter)
{
return _aboutService.ShowAboutAsync();
}
Expand Down
5 changes: 2 additions & 3 deletions src/LogViewer/Commands/SettingsGeneralCommandContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using Catel;
using Catel.Logging;
using Catel.MVVM;
using Catel.Reflection;
Expand All @@ -28,7 +27,7 @@ public SettingsGeneralCommandContainer(ICommandManager commandManager, IUIVisual
_viewModelFactory = viewModelFactory;
}

protected override async Task ExecuteAsync(object parameter)
public override async Task ExecuteAsync(object parameter)
{
base.Execute(parameter);

Expand All @@ -43,4 +42,4 @@ protected override async Task ExecuteAsync(object parameter)
await _uiVisualizerService.ShowDialogAsync(viewModel);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System;
using System.Collections.ObjectModel;
using System.Linq;
using Catel;
using Catel.Configuration;
using Models;
using Services;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace LogViewer.Configuration
{
using System;
using Catel;
using Catel.Configuration;
using Models;
using Services;
Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/Controls/HighlightableTextBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Media;
using Catel.IoC;
using Catel.Services;
using Catel.Windows.Threading;

Expand Down
2 changes: 0 additions & 2 deletions src/LogViewer/Extensions/AppDataServiceExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
namespace LogViewer
{
using System;
using Catel;
using Catel.IO;
using Catel.Services;
using Orchestra.Services;

public static class AppDataServiceExtensions
{
Expand Down
2 changes: 0 additions & 2 deletions src/LogViewer/Extensions/FilterExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
{
using System;
using System.Text.RegularExpressions;

using Catel;
using Catel.Logging;

using LogViewer.Models;
Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/Extensions/IListExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{
using System;
using System.Collections.Generic;
using Catel;

public static class IListExtensions
{
Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/Extensions/ItemsControlExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
using System.Windows.Controls;
using Catel;

public static class ItemsControlExtensions
{
Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/Extensions/ListExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Catel;

public static class ListExtensions
{
Expand Down
6 changes: 1 addition & 5 deletions src/LogViewer/LogViewer.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="MSBuild.Sdk.Extras">
<PropertyGroup>
<TargetFrameworks>net6.0-windows</TargetFrameworks>
<TargetFrameworks>net8.0-windows</TargetFrameworks>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<SelfContained>true</SelfContained>
Expand Down Expand Up @@ -54,10 +54,6 @@
<PackageReference Include="Rx-WPF" Version="2.2.5" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="NETStandard.Library" Version="2.0.3" />
</ItemGroup>

<Import Project="$(MSBuildProjectDirectory)\..\Directory.build.shared.explicit.props" Condition="Exists('$(MSBuildProjectDirectory)\..\Directory.build.shared.explicit.props')" />
<Import Project="$(MSBuildProjectDirectory)\..\Directory.build.shared.mat.props" Condition="Exists('$(MSBuildProjectDirectory)\..\Directory.build.shared.mat.props')" />
</Project>
2 changes: 0 additions & 2 deletions src/LogViewer/Models/FileNode.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
namespace LogViewer.Models
{
using System;
using System.Collections.ObjectModel;
using System.IO;
using Catel;
using Catel.Collections;

public class FileNode : NavigationNode
Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/Models/FolderNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Collections.ObjectModel;
using System.IO;
using System.Windows.Data;
using Catel;

public class FolderNode : NavigationNode
{
Expand Down
2 changes: 0 additions & 2 deletions src/LogViewer/ModuleInitializer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using Catel.IoC;
using LogViewer;
using LogViewer.Services;
using LogViewer.Models;
using Orchestra.Services;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/Services/FileSystemService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Linq;
using System.Threading.Tasks;
using Catel;
using Catel.Collections;
using Catel.Logging;
using Catel.Services;
using Models;
Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/Services/FilterService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Catel;
using Catel.Collections;
using Catel.Services;
using MethodTimer;
Expand Down
7 changes: 3 additions & 4 deletions src/LogViewer/Services/LogReaderService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
using System.Globalization;
using System.IO;
using System.Text.RegularExpressions;
using Catel;
using Catel.Logging;
using MethodTimer;
using Models;
using Orc.FileSystem;

Expand Down Expand Up @@ -45,7 +43,7 @@ public IEnumerable<LogRecord> LoadRecordsFromFile(FileNode fileNode)
{
ArgumentNullException.ThrowIfNull(fileNode);

FileStream stream;
Stream stream;

Log.Debug("Loading records file file '{0}'", fileNode);

Expand All @@ -60,7 +58,8 @@ public IEnumerable<LogRecord> LoadRecordsFromFile(FileNode fileNode)
yield break;
}

int counter = 0;
var counter = 0;

using (stream)
{
using (var reader = new StreamReader(stream))
Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/Services/LogTableConfigurationService.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace LogViewer.Services
{
using System;
using Catel;
using Catel.Configuration;

public class LogTableConfigurationService : ILogTableConfigurationService
Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/Services/RegexService.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace LogViewer.Services
{
using System;
using Catel;

internal class RegexService : IRegexService
{
Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/UnhandledExceptionWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Diagnostics;
using System.Threading.Tasks;
using System.Windows;
using Catel;
using Catel.Logging;
using Catel.Services;

Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/ViewModels/LogRecordsTableViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.ComponentModel;
using System.Reactive.Linq;
using System.Threading.Tasks;
using Catel;
using Catel.Fody;
using Catel.MVVM;
using Models;
Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/ViewModels/RibbonViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{
using System.ComponentModel;
using System.Threading.Tasks;
using Catel;
using Catel.Configuration;
using Catel.Fody;
using Catel.Reflection;
Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/ViewModels/SettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Catel;
using Catel.Configuration;
using Catel.MVVM;
using Orc.Squirrel;
Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/ViewModels/StatusBarViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{
using System;
using System.Threading.Tasks;
using Catel;
using Catel.Configuration;
using Catel.MVVM;
using Orchestra;
Expand Down
1 change: 0 additions & 1 deletion src/LogViewer/ViewModels/WindowCommandsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using Catel;
using Catel.Configuration;
using Catel.MVVM;
using Orc.Theming;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{
using System;
using System.Threading.Tasks;
using Catel;
using Catel.IoC;
using Orc.WorkspaceManagement;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{
using System;
using System.Threading.Tasks;
using Catel;
using Catel.IoC;
using Orc.WorkspaceManagement;
using Services;
Expand Down
Binary file modified src/SolutionAssemblyInfo.cs
Binary file not shown.

0 comments on commit 72f58ba

Please sign in to comment.