diff --git a/build/dependencies.props b/build/dependencies.props
index 93a8386b7..b42ef0c5c 100644
--- a/build/dependencies.props
+++ b/build/dependencies.props
@@ -5,7 +5,7 @@
3.23.1
2.55.0
2.46.6
- 2.57.0
+ 2.58.0
8.0.0-rc.1.23378.7
7.0.5
6.0.11
diff --git a/build/version.props b/build/version.props
index cb4e8e316..5ce5fb472 100644
--- a/build/version.props
+++ b/build/version.props
@@ -2,13 +2,13 @@
- 2.57.0-dev
+ 2.58.0-pre1
2.0.0.0
- 2.57.0.0
+ 2.58.0.0
diff --git a/src/Grpc.AspNetCore.Server/Model/Internal/ProviderServiceBinder.cs b/src/Grpc.AspNetCore.Server/Model/Internal/ProviderServiceBinder.cs
index b78bb5653..f570dae64 100644
--- a/src/Grpc.AspNetCore.Server/Model/Internal/ProviderServiceBinder.cs
+++ b/src/Grpc.AspNetCore.Server/Model/Internal/ProviderServiceBinder.cs
@@ -1,4 +1,4 @@
-#region Copyright notice and license
+#region Copyright notice and license
// Copyright 2019 The gRPC Authors
//
@@ -39,7 +39,7 @@ internal ProviderServiceBinder(ServiceMethodProviderContext context, T
_declaringType = declaringType;
}
- public override void AddMethod(Method method, ClientStreamingServerMethod handler)
+ public override void AddMethod(Method method, ClientStreamingServerMethod? handler)
{
var (invoker, metadata) = CreateModelCore>(
method.Name,
@@ -48,7 +48,7 @@ public override void AddMethod(Method
_context.AddClientStreamingMethod(method, metadata, invoker);
}
- public override void AddMethod(Method method, DuplexStreamingServerMethod handler)
+ public override void AddMethod(Method method, DuplexStreamingServerMethod? handler)
{
var (invoker, metadata) = CreateModelCore>(
method.Name,
@@ -57,7 +57,7 @@ public override void AddMethod(Method
_context.AddDuplexStreamingMethod(method, metadata, invoker);
}
- public override void AddMethod(Method method, ServerStreamingServerMethod handler)
+ public override void AddMethod(Method method, ServerStreamingServerMethod? handler)
{
var (invoker, metadata) = CreateModelCore>(
method.Name,
@@ -66,7 +66,7 @@ public override void AddMethod(Method
_context.AddServerStreamingMethod(method, metadata, invoker);
}
- public override void AddMethod(Method method, UnaryServerMethod handler)
+ public override void AddMethod(Method method, UnaryServerMethod? handler)
{
var (invoker, metadata) = CreateModelCore>(
method.Name,
diff --git a/src/Grpc.Auth/Grpc.Auth.csproj b/src/Grpc.Auth/Grpc.Auth.csproj
index 8edcfcf4f..af058881c 100755
--- a/src/Grpc.Auth/Grpc.Auth.csproj
+++ b/src/Grpc.Auth/Grpc.Auth.csproj
@@ -5,7 +5,7 @@
true
true
- net462;netstandard1.5;netstandard2.0
+ net462;netstandard2.0
README.md
diff --git a/src/Grpc.Core.Api/AsyncClientStreamingCall.cs b/src/Grpc.Core.Api/AsyncClientStreamingCall.cs
index 86dc07855..789ed9c3d 100644
--- a/src/Grpc.Core.Api/AsyncClientStreamingCall.cs
+++ b/src/Grpc.Core.Api/AsyncClientStreamingCall.cs
@@ -180,12 +180,13 @@ public AsyncClientStreamingCallDebugView(AsyncClientStreamingCall _call.callState.State is IMethod method ? new CallDebuggerMethodDebugView(method) : null;
public bool IsComplete => CallDebuggerHelpers.GetStatus(_call.callState) != null;
public Status? Status => CallDebuggerHelpers.GetStatus(_call.callState);
public Metadata? ResponseHeaders => _call.ResponseHeadersAsync.Status == TaskStatus.RanToCompletion ? _call.ResponseHeadersAsync.GetAwaiter().GetResult() : null;
public Metadata? Trailers => CallDebuggerHelpers.GetTrailers(_call.callState);
public IClientStreamWriter RequestStream => _call.RequestStream;
public TResponse? Response => _call.ResponseAsync.Status == TaskStatus.RanToCompletion ? _call.ResponseAsync.Result : default;
+ public CallDebuggerMethodDebugView? Method => CallDebuggerHelpers.GetDebugValue(_call.callState, CallDebuggerHelpers.MethodKey) is { } method ? new CallDebuggerMethodDebugView(method) : null;
+ public ChannelBase? Channel => CallDebuggerHelpers.GetDebugValue(_call.callState, CallDebuggerHelpers.ChannelKey);
}
}
diff --git a/src/Grpc.Core.Api/AsyncDuplexStreamingCall.cs b/src/Grpc.Core.Api/AsyncDuplexStreamingCall.cs
index 721240f26..a9b275d3e 100644
--- a/src/Grpc.Core.Api/AsyncDuplexStreamingCall.cs
+++ b/src/Grpc.Core.Api/AsyncDuplexStreamingCall.cs
@@ -157,12 +157,13 @@ public AsyncDuplexStreamingCallDebugView(AsyncDuplexStreamingCall _call.callState.State is IMethod method ? new CallDebuggerMethodDebugView(method) : null;
public bool IsComplete => CallDebuggerHelpers.GetStatus(_call.callState) != null;
public Status? Status => CallDebuggerHelpers.GetStatus(_call.callState);
public Metadata? ResponseHeaders => _call.ResponseHeadersAsync.Status == TaskStatus.RanToCompletion ? _call.ResponseHeadersAsync.Result : null;
public Metadata? Trailers => CallDebuggerHelpers.GetTrailers(_call.callState);
public IAsyncStreamReader ResponseStream => _call.ResponseStream;
public IClientStreamWriter RequestStream => _call.RequestStream;
+ public CallDebuggerMethodDebugView? Method => CallDebuggerHelpers.GetDebugValue(_call.callState, CallDebuggerHelpers.MethodKey) is { } method ? new CallDebuggerMethodDebugView(method) : null;
+ public ChannelBase? Channel => CallDebuggerHelpers.GetDebugValue(_call.callState, CallDebuggerHelpers.ChannelKey);
}
}
diff --git a/src/Grpc.Core.Api/AsyncServerStreamingCall.cs b/src/Grpc.Core.Api/AsyncServerStreamingCall.cs
index 59be107d0..efdf2b887 100644
--- a/src/Grpc.Core.Api/AsyncServerStreamingCall.cs
+++ b/src/Grpc.Core.Api/AsyncServerStreamingCall.cs
@@ -138,11 +138,13 @@ public AsyncServerStreamingCallDebugView(AsyncServerStreamingCall cal
_call = call;
}
- public CallDebuggerMethodDebugView? Method => _call.callState.State is IMethod method ? new CallDebuggerMethodDebugView(method) : null;
public bool IsComplete => CallDebuggerHelpers.GetStatus(_call.callState) != null;
public Status? Status => CallDebuggerHelpers.GetStatus(_call.callState);
public Metadata? ResponseHeaders => _call.ResponseHeadersAsync.Status == TaskStatus.RanToCompletion ? _call.ResponseHeadersAsync.Result : null;
public Metadata? Trailers => CallDebuggerHelpers.GetTrailers(_call.callState);
public IAsyncStreamReader ResponseStream => _call.ResponseStream;
+ public CallDebuggerMethodDebugView? Method => CallDebuggerHelpers.GetDebugValue(_call.callState, CallDebuggerHelpers.MethodKey) is { } method ? new CallDebuggerMethodDebugView(method) : null;
+ public ChannelBase? Channel => CallDebuggerHelpers.GetDebugValue(_call.callState, CallDebuggerHelpers.ChannelKey);
+ public object? Request => CallDebuggerHelpers.GetDebugValue