Skip to content

Commit 629a4e2

Browse files
committed
Fix build
1 parent 8d7f219 commit 629a4e2

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

Source/ApiTemplate/Source/ApiTemplate/ConfigureOptions/ConfigureRequestLoggingOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private static void EnrichDiagnosticContext(IDiagnosticContext diagnosticContext
5656
}
5757
#if HealthCheck
5858

59-
private static LogEventLevel GetLevel(HttpContext httpContext, double elapsedMilliseconds, Exception exception)
59+
private static LogEventLevel GetLevel(HttpContext httpContext, double elapsedMilliseconds, Exception? exception)
6060
{
6161
if (exception is null && httpContext.Response.StatusCode <= 499)
6262
{

Source/ApiTemplate/Source/ApiTemplate/Options/RedisOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public ConfigurationOptions ConfigurationOptions
1212
{
1313
get
1414
{
15-
var options = ConfigurationOptions.Parse(this.ConnectionString);
15+
var options = ConfigurationOptions.Parse(this.ConnectionString!);
1616
options.ClientName = AssemblyInformation.Current.Product;
1717
return options;
1818
}

Source/GraphQLTemplate/Source/GraphQLTemplate/ConfigureOptions/ConfigureRequestLoggingOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private static void EnrichDiagnosticContext(IDiagnosticContext diagnosticContext
7373
}
7474
#if HealthCheck
7575

76-
private static LogEventLevel GetLevel(HttpContext httpContext, double elapsedMilliseconds, Exception exception)
76+
private static LogEventLevel GetLevel(HttpContext httpContext, double elapsedMilliseconds, Exception? exception)
7777
{
7878
if (exception is null && httpContext.Response.StatusCode <= 499)
7979
{

Source/NuGetTemplate/appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ build_script:
3838
- pwsh: dotnet cake --target=Test
3939
- pwsh: dotnet cake --target=Pack
4040

41-
test: off
41+
test: false
4242

4343
artifacts:
4444
- name: NuGet Packages

Source/OrleansTemplate/Source/OrleansTemplate.Grains/CounterStatelessGrain.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ public override Task OnActivateAsync(CancellationToken cancellationToken)
2424
{
2525
// Timers are stored in-memory so are not resilient to nodes going down. They should be used for short
2626
// high-frequency timers their period should be measured in seconds.
27-
this.RegisterTimer(this.OnTimerTickAsync, null, TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(1));
27+
this.RegisterTimer(this.OnTimerTickAsync, null!, TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(1));
2828
return base.OnActivateAsync(cancellationToken);
2929
}
3030

31-
private async Task OnTimerTickAsync(object arg)
31+
private async Task OnTimerTickAsync(object state)
3232
{
3333
var count = this.count;
3434
this.count = 0;

Source/OrleansTemplate/Tests/OrleansTemplate.Server.IntegrationTest/Fixtures/TestSiloConfigurator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
namespace OrleansTemplate.Server.IntegrationTest.Fixtures;
2+
23
#if Serilog
34
using Microsoft.Extensions.DependencyInjection;
45
using Microsoft.Extensions.Logging;

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ build_script:
3939
- pwsh: dotnet cake --target=Test
4040
- pwsh: dotnet cake --target=Pack
4141

42-
test: off
42+
test: false
4343

4444
artifacts:
4545
- name: NuGet Packages

0 commit comments

Comments
 (0)