Skip to content

Commit

Permalink
Update Package versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
hcoona committed Dec 17, 2019
1 parent 9e1ac9f commit eda4fd7
Show file tree
Hide file tree
Showing 16 changed files with 58 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.10.0" />
<PackageReference Include="Grpc" Version="2.24.0" />
<PackageReference Include="Grpc.Tools" Version="2.24.0" PrivateAssets="All" />
<PackageReference Include="Google.Protobuf" Version="3.11.2" />
<PackageReference Include="Grpc" Version="2.25.0" />
<PackageReference Include="Grpc.Tools" Version="2.25.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.0.1" />
<PackageReference Include="Overby.Extensions.AsyncBinaryReaderWriter" Version="1.0.39" />
<PackageReference Include="System.Text.Json" Version="4.6.0" />
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="4.10.0" />
<PackageReference Include="System.Text.Json" Version="4.7.0" />
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="4.11.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ public DeviceServiceImpl(
TimeSpan.FromMilliseconds(tasksOptions.Value.CollectMetricIntervalMillis),
TimeSpan.FromMilliseconds(tasksOptions.Value.CollectMetricIntervalMillis));

IOptionsSnapshot<CoreOptions> coreOptions =
this.serviceProvider.GetRequiredService<IOptionsSnapshot<CoreOptions>>();
this.logger.LogInformation("CoreOptions: {0}", coreOptions.Value);
this.logger.LogInformation("TasksOptions: {0}", tasksOptions.Value);

if (this.logger.IsEnabled(LogLevel.Debug))
{
IOptionsSnapshot<DeviceOptions> deviceOptions = this.serviceProvider.GetRequiredService<IOptionsSnapshot<DeviceOptions>>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// Licensed under the GPLv3 license. See LICENSE file in the project root for full license information.
// </copyright>

using System.Text.Json;

namespace GeothermalResearchInstitute.ServerConsole.Options
{
public class CoreOptions
Expand All @@ -14,5 +16,10 @@ public class CoreOptions
public int DefaultReadTimeoutMillis { get; set; }

public int MaxFakeDeviceNum { get; set; }

public override string ToString()
{
return JsonSerializer.Serialize(this);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@
// Licensed under the GPLv3 license. See LICENSE file in the project root for full license information.
// </copyright>

using System.Text.Json;

namespace GeothermalResearchInstitute.ServerConsole.Options
{
public class TasksOptions
{
public int CollectAlarmIntervalMillis { get; set; }

public int CollectMetricIntervalMillis { get; set; }

public override string ToString()
{
return JsonSerializer.Serialize(this);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,25 @@
<PublishTrimmed>False</PublishTrimmed>
</PropertyGroup>
<ItemGroup>
<PackageReference Condition="'$(Configuration)' != 'Release'" Include="Grpc.Core.Testing" Version="2.24.0" />
<PackageReference Condition="'$(Configuration)' != 'Release'" Include="Grpc.Core.Testing" Version="2.25.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Ini" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Configuration" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="3.0.0" />
<PackageReference Include="Prism.Unity" Version="7.2.0.1367" />
<PackageReference Include="Prism.Unity" Version="7.2.0.1422" />
<PackageReference Include="Prism.Validation" Version="1.3.0" />
<PackageReference Include="Serilog" Version="2.9.0" />
<PackageReference Include="Serilog.Enrichers.Thread" Version="3.1.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="3.0.1" />
<PackageReference Include="Serilog.Settings.Configuration" Version="3.1.0" />
<PackageReference Include="Serilog.Sinks.Async" Version="1.4.0" />
<PackageReference Include="Serilog.Sinks.File" Version="4.1.0" />
<PackageReference Include="Unity.Container" Version="5.11.1" />
<PackageReference Include="Unity.Microsoft.DependencyInjection" Version="5.10.2" />
<PackageReference Include="System.Text.Json" Version="4.7.0" />
<PackageReference Include="Unity.Container" Version="5.11.4" />
<PackageReference Include="Unity.Microsoft.DependencyInjection" Version="5.11.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\GrpcLoggerAdapater\GrpcLoggerAdapater\GrpcLoggerAdapater.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// Licensed under the GPLv3 license. See LICENSE file in the project root for full license information.
// </copyright>

using System.Text.Json;

namespace GeothermalResearchInstitute.Wpf.Options
{
public class CoreOptions
Expand All @@ -20,5 +22,10 @@ public class CoreOptions
public int DefaultRefreshIntervalMillis { get; set; } = 1000;

public int MaxErrorToleranceNum { get; set; } = 5;

public override string ToString()
{
return JsonSerializer.Serialize(this);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
using System.ComponentModel;
using System.Linq;
using GeothermalResearchInstitute.Wpf.Common;
using GeothermalResearchInstitute.Wpf.Options;
using GeothermalResearchInstitute.Wpf.Views;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Prism.Commands;
using Prism.Mvvm;
using Prism.Regions;
Expand All @@ -18,12 +20,17 @@ namespace GeothermalResearchInstitute.Wpf.ViewModels
public class WelcomeViewModel : BindableBase
{
private readonly ILogger<WelcomeViewModel> logger;
private readonly IOptions<CoreOptions> coreOptions;
private readonly IRegionManager regionManager;
private ViewModelContext viewModelContext;

public WelcomeViewModel(ILogger<WelcomeViewModel> logger, IRegionManager regionManager)
public WelcomeViewModel(
ILogger<WelcomeViewModel> logger,
IOptions<CoreOptions> coreOptions,
IRegionManager regionManager)
{
this.logger = logger;
this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
this.coreOptions = coreOptions ?? throw new ArgumentNullException(nameof(coreOptions));
this.regionManager = regionManager ?? throw new ArgumentNullException(nameof(regionManager));

this.NavigateToLoginViewCommand = new DelegateCommand(this.ExecuteNavigateToLoginView);
Expand All @@ -33,7 +40,7 @@ public WelcomeViewModel(ILogger<WelcomeViewModel> logger, IRegionManager regionM
this.NavigateToContactViewCommand = new DelegateCommand(
this.ExecuteNavigateToContactView);

this.logger.LogInformation("Hello World!");
this.logger.LogInformation("CoreOptions: {0}", this.coreOptions.Value);
}

public ViewModelContext ViewModelContext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Grpc.Core" Version="2.24.0" />
<PackageReference Include="Grpc.Core" Version="2.25.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.0.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.0.0" />
<PackageReference Include="MSTest.TestFramework" Version="2.0.0" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="HtmlAgilityPack" Version="1.11.16" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.17" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion TimeLimiter/TimeLimiterUnitTest/TimeLimiterUnitTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>
Expand Down
6 changes: 3 additions & 3 deletions codelab/PrismLab/PrismLab.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Ini" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="3.0.0" />
<PackageReference Include="Prism.Unity" Version="7.2.0.1367" />
<PackageReference Include="Unity.Container" Version="5.11.1" />
<PackageReference Include="Unity.Microsoft.DependencyInjection" Version="5.10.2" />
<PackageReference Include="Prism.Unity" Version="7.2.0.1422" />
<PackageReference Include="Unity.Container" Version="5.11.4" />
<PackageReference Include="Unity.Microsoft.DependencyInjection" Version="5.11.5" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions codelab/TcpServerLab/TcpServerLab.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="3.0.1" />
<PackageReference Include="Overby.Extensions.AsyncBinaryReaderWriter" Version="1.0.39" />
<PackageReference Include="System.Text.Json" Version="4.6.0" />
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="4.10.0" />
<PackageReference Include="System.Text.Json" Version="4.7.0" />
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="4.11.0" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions codelab/TplLab/TplLab.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Text.Json" Version="4.6.0" />
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="4.10.0" />
<PackageReference Include="System.Text.Json" Version="4.7.0" />
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="4.11.0" />
</ItemGroup>

</Project>

0 comments on commit eda4fd7

Please sign in to comment.