Skip to content

Commit 31f7a5f

Browse files
authored
Fix metadata arguments on binder context (#327)
1 parent 3b6eac6 commit 31f7a5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Grpc.AspNetCore.Server/Model/ServiceMethodProviderContext.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void AddUnaryMethod<TRequest, TResponse>(Method<TRequest, TResponse> meth
6565
/// <param name="method">The method description.</param>
6666
/// <param name="metadata">The method metadata. This metadata can be used by routing and middleware when invoking a gRPC method.</param>
6767
/// <param name="invoker">The method invoker that is executed when the method is called.</param>
68-
public void AddServerStreamingMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, List<object> metadata, ServerStreamingServerMethod<TService, TRequest, TResponse> invoker)
68+
public void AddServerStreamingMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, IList<object> metadata, ServerStreamingServerMethod<TService, TRequest, TResponse> invoker)
6969
where TRequest : class
7070
where TResponse : class
7171
{
@@ -83,7 +83,7 @@ public void AddServerStreamingMethod<TRequest, TResponse>(Method<TRequest, TResp
8383
/// <param name="method">The method description.</param>
8484
/// <param name="metadata">The method metadata. This metadata can be used by routing and middleware when invoking a gRPC method.</param>
8585
/// <param name="invoker">The method invoker that is executed when the method is called.</param>
86-
public void AddClientStreamingMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, List<object> metadata, ClientStreamingServerMethod<TService, TRequest, TResponse> invoker)
86+
public void AddClientStreamingMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, IList<object> metadata, ClientStreamingServerMethod<TService, TRequest, TResponse> invoker)
8787
where TRequest : class
8888
where TResponse : class
8989
{
@@ -101,7 +101,7 @@ public void AddClientStreamingMethod<TRequest, TResponse>(Method<TRequest, TResp
101101
/// <param name="method">The method description.</param>
102102
/// <param name="metadata">The method metadata. This metadata can be used by routing and middleware when invoking a gRPC method.</param>
103103
/// <param name="invoker">The method invoker that is executed when the method is called.</param>
104-
public void AddDuplexStreamingMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, List<object> metadata, DuplexStreamingServerMethod<TService, TRequest, TResponse> invoker)
104+
public void AddDuplexStreamingMethod<TRequest, TResponse>(Method<TRequest, TResponse> method, IList<object> metadata, DuplexStreamingServerMethod<TService, TRequest, TResponse> invoker)
105105
where TRequest : class
106106
where TResponse : class
107107
{

0 commit comments

Comments
 (0)