Skip to content

Refactor/reduce code duplication #2809

Refactor/reduce code duplication

Refactor/reduce code duplication #2809

Triggered via pull request January 5, 2026 01:18
Status Success
Total duration 4m 50s
Artifacts

pull-request.yml

on: pull_request
Matrix: test-fast
Matrix: test-slow
Fit to window
Zoom out
Zoom in

Annotations

79 warnings
test-fast (tests/Proto.Remote.Tests/*.csproj)
'WebHostBuilder' is obsolete: 'WebHostBuilder is deprecated in favor of HostBuilder and WebApplicationBuilder. For more information, visit https://aka.ms/aspnet/deprecate/004.' (https://aka.ms/aspnet/deprecate/004)
test-fast (tests/Proto.Remote.Tests/*.csproj)
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
test-fast (tests/Proto.Remote.Tests/*.csproj)
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
test-fast (tests/Proto.Actor.Tests/*.csproj)
Cache save failed.
test-fast (tests/Proto.Actor.Tests/*.csproj)
Possible null reference argument for parameter 'message' in 'void ISenderContext.Send(PID target, object message)'.
test-fast (tests/Proto.Actor.Tests/*.csproj)
Possible null reference argument for parameter 'message' in 'void ISenderContext.Send(PID target, object message)'.
test-fast (tests/Proto.Actor.Tests/*.csproj)
Possible null reference argument for parameter 'message' in 'void ISenderContext.Send(PID target, object message)'.
test-fast (tests/Proto.Actor.Tests/*.csproj)
Possible null reference argument for parameter 'message' in 'void ISenderContext.Send(PID target, object message)'.
test-fast (tests/Proto.Actor.Tests/*.csproj)
Possible null reference argument for parameter 'message' in 'void ISenderContext.Send(PID target, object message)'.
test-fast (tests/Proto.Actor.Tests/*.csproj)
Possible null reference argument for parameter 'message' in 'void ISenderContext.Send(PID target, object message)'.
test-fast (tests/Proto.Actor.Tests/*.csproj)
Possible null reference argument for parameter 'message' in 'void ISenderContext.Send(PID target, object message)'.
test-fast (tests/Proto.Actor.Tests/*.csproj)
'WebHostBuilder' is obsolete: 'WebHostBuilder is deprecated in favor of HostBuilder and WebApplicationBuilder. For more information, visit https://aka.ms/aspnet/deprecate/004.' (https://aka.ms/aspnet/deprecate/004)
test-fast (tests/Proto.Actor.Tests/*.csproj)
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
test-fast (tests/Proto.Actor.Tests/*.csproj)
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
test-fast (tests/Proto.OpenTelemetry.Tests/*.csproj)
Argument of type 'Dictionary<string, string?>' cannot be used for parameter 'baggageItems' of type 'Dictionary<string, string>' in 'Baggage Baggage.Create(Dictionary<string, string>? baggageItems = null)' due to differences in the nullability of reference types.
test-fast (tests/Proto.OpenTelemetry.Tests/*.csproj)
'ActivityExtensions.GetStatus(Activity?)' is obsolete: 'Use Activity.Status and Activity.StatusDescription instead this method will be removed in a future version.'
test-fast (tests/Proto.OpenTelemetry.Tests/*.csproj)
Possible null reference argument for parameter 'provider' in 'bool MeterProviderExtensions.ForceFlush(MeterProvider provider, int timeoutMilliseconds = -1)'.
test-fast (tests/Proto.OpenTelemetry.Tests/*.csproj)
Argument of type 'Dictionary<string, string?>' cannot be used for parameter 'baggageItems' of type 'Dictionary<string, string>' in 'Baggage Baggage.Create(Dictionary<string, string>? baggageItems = null)' due to differences in the nullability of reference types.
test-fast (tests/Proto.OpenTelemetry.Tests/*.csproj)
'ActivityExtensions.GetStatus(Activity?)' is obsolete: 'Use Activity.Status and Activity.StatusDescription instead this method will be removed in a future version.'
test-fast (tests/Proto.OpenTelemetry.Tests/*.csproj)
Possible null reference argument for parameter 'provider' in 'bool MeterProviderExtensions.ForceFlush(MeterProvider provider, int timeoutMilliseconds = -1)'.
test-fast (tests/Proto.OpenTelemetry.Tests/*.csproj)
'WebHostBuilder' is obsolete: 'WebHostBuilder is deprecated in favor of HostBuilder and WebApplicationBuilder. For more information, visit https://aka.ms/aspnet/deprecate/004.' (https://aka.ms/aspnet/deprecate/004)
test-fast (tests/Proto.OpenTelemetry.Tests/*.csproj)
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
test-fast (tests/Proto.OpenTelemetry.Tests/*.csproj)
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
test-slow (net8.0, tests/Proto.Cluster.RedisIdentity.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
test-slow (net8.0, tests/Proto.Cluster.RedisIdentity.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net8.0, tests/Proto.Cluster.RedisIdentity.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net8.0, tests/Proto.Cluster.RedisIdentity.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
test-slow (net10.0, tests/Proto.Cluster.PubSub.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net10.0, tests/Proto.Cluster.PubSub.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net10.0, tests/Proto.Cluster.PubSub.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
test-slow (net10.0, tests/Proto.Cluster.PubSub.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
test-slow (net10.0, tests/Proto.Cluster.PubSub.Tests/*.csproj)
'WebHostBuilder' is obsolete: 'WebHostBuilder is deprecated in favor of HostBuilder and WebApplicationBuilder. For more information, visit https://aka.ms/aspnet/deprecate/004.' (https://aka.ms/aspnet/deprecate/004)
test-slow (net10.0, tests/Proto.Cluster.PubSub.Tests/*.csproj)
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
test-slow (net10.0, tests/Proto.Cluster.PubSub.Tests/*.csproj)
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
test-slow (net8.0, tests/Proto.Cluster.PubSub.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net8.0, tests/Proto.Cluster.PubSub.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net8.0, tests/Proto.Cluster.PubSub.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
test-slow (net8.0, tests/Proto.Cluster.PubSub.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
build
The variable 'port' is assigned but its value is never used
build
The using directive for 'Proto.Remote' appeared previously in this namespace
build
build
build
build
build
'WebHostBuilder' is obsolete: 'WebHostBuilder is deprecated in favor of HostBuilder and WebApplicationBuilder. For more information, visit https://aka.ms/aspnet/deprecate/004.' (https://aka.ms/aspnet/deprecate/004)
build
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
build
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
test-slow (net10.0, tests/Proto.Cluster.PartitionIdentity.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net10.0, tests/Proto.Cluster.PartitionIdentity.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net10.0, tests/Proto.Cluster.PartitionIdentity.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
test-slow (net10.0, tests/Proto.Cluster.PartitionIdentity.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
test-slow (net10.0, tests/Proto.Cluster.PartitionIdentity.Tests/*.csproj)
'WebHostBuilder' is obsolete: 'WebHostBuilder is deprecated in favor of HostBuilder and WebApplicationBuilder. For more information, visit https://aka.ms/aspnet/deprecate/004.' (https://aka.ms/aspnet/deprecate/004)
test-slow (net10.0, tests/Proto.Cluster.PartitionIdentity.Tests/*.csproj)
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
test-slow (net10.0, tests/Proto.Cluster.PartitionIdentity.Tests/*.csproj)
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
test-slow (net8.0, tests/Proto.Cluster.PartitionIdentity.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
test-slow (net8.0, tests/Proto.Cluster.PartitionIdentity.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net8.0, tests/Proto.Cluster.PartitionIdentity.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net8.0, tests/Proto.Cluster.PartitionIdentity.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
test-slow (net10.0, tests/Proto.Cluster.RedisIdentity.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net10.0, tests/Proto.Cluster.RedisIdentity.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net10.0, tests/Proto.Cluster.RedisIdentity.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
test-slow (net10.0, tests/Proto.Cluster.RedisIdentity.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
test-slow (net10.0, tests/Proto.Cluster.RedisIdentity.Tests/*.csproj)
'WebHostBuilder' is obsolete: 'WebHostBuilder is deprecated in favor of HostBuilder and WebApplicationBuilder. For more information, visit https://aka.ms/aspnet/deprecate/004.' (https://aka.ms/aspnet/deprecate/004)
test-slow (net10.0, tests/Proto.Cluster.RedisIdentity.Tests/*.csproj)
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
test-slow (net10.0, tests/Proto.Cluster.RedisIdentity.Tests/*.csproj)
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
test-slow (net10.0, tests/Proto.Cluster.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net10.0, tests/Proto.Cluster.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net10.0, tests/Proto.Cluster.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
test-slow (net10.0, tests/Proto.Cluster.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
test-slow (net10.0, tests/Proto.Cluster.Tests/*.csproj)
'WebHostBuilder' is obsolete: 'WebHostBuilder is deprecated in favor of HostBuilder and WebApplicationBuilder. For more information, visit https://aka.ms/aspnet/deprecate/004.' (https://aka.ms/aspnet/deprecate/004)
test-slow (net10.0, tests/Proto.Cluster.Tests/*.csproj)
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
test-slow (net10.0, tests/Proto.Cluster.Tests/*.csproj)
'IWebHost' is obsolete: 'IWebHost is obsolete. Use IHost instead. For more information, visit https://aka.ms/aspnet/deprecate/008.' (https://aka.ms/aspnet/deprecate/008)
test-slow (net8.0, tests/Proto.Cluster.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net8.0, tests/Proto.Cluster.Tests/*.csproj)
The variable 'e' is declared but never used
test-slow (net8.0, tests/Proto.Cluster.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
test-slow (net8.0, tests/Proto.Cluster.Tests/*.csproj)
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.