Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<ItemGroup>
<PackageVersion Include="AwesomeAssertions" Version="9.4.0" />
<PackageVersion Include="coverlet.collector" Version="10.0.1" />
<PackageVersion Include="Microsoft.Extensions.Http.Resilience" Version="10.7.0" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.9" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.7.0" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="10.0.300" />
<PackageVersion Include="ptr727.Utilities" Version="4.0.7" />
<PackageVersion Include="Serilog" Version="4.3.1" />
<PackageVersion Include="Serilog.Enrichers.Thread" Version="4.0.0" />
Comment thread
ptr727 marked this conversation as resolved.
<PackageVersion Include="Serilog.Extensions.Logging" Version="10.0.0" />
Expand Down
45 changes: 0 additions & 45 deletions LanguageTagsCreate/AssemblyInfo.cs

This file was deleted.

4 changes: 2 additions & 2 deletions LanguageTagsCreate/CreateTagData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ private async Task DownloadFileAsync(Uri uri, string fileName)

Log.Information("Downloading \"{Uri}\" to \"{FileName}\" ...", uri.ToString(), fileName);

using Stream httpStream = await HttpClientFactory
.GetHttpClient()
using Stream httpStream = await Utilities
.HttpClientFactory.GetClient()
.GetStreamAsync(uri, cancellationToken)
.ConfigureAwait(false);

Expand Down
120 changes: 0 additions & 120 deletions LanguageTagsCreate/HttpClientFactory.cs

This file was deleted.

2 changes: 1 addition & 1 deletion LanguageTagsCreate/LanguageTagsCreate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<ProjectReference Include="..\LanguageTags\LanguageTags.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
<PackageReference Include="ptr727.Utilities" />
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="all" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
<PackageReference Include="Serilog.Enrichers.Thread" />
Expand Down
4 changes: 3 additions & 1 deletion LanguageTagsCreate/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ internal static async Task<int> Main(string[] args)
Log.Logger = LoggerFactory.Create(
commandLine.CreateOptions(commandLine.Result).LogOptions
);
LogOptions.SetFactory(LoggerFactory.CreateLoggerFactory());
ILoggerFactory loggerFactory = LoggerFactory.CreateLoggerFactory();
LogOptions.SetFactory(loggerFactory);
Utilities.LogOptions.SetFactory(loggerFactory);

// Invoke command
Log.Logger.LogOverrideContext().Information("Starting: {Args}", args);
Expand Down