src/Grpc.Extensions/ClientSide/StatelessCallInvoker.cs
/// <summary>Creates call invocation details for given method.</summary>
Creates call invocation details for given method.
Creates call invocation details for given method .
protected virtual CallInvocationDetails<TRequest, TResponse> CreateCall<TRequest, TResponse>(Method<TRequest, TResponse> method, string host, CallOptions options)
                where TRequest : class
                where TResponse : class
        {
            var channel = _channelProvider.GetChannel(method.ServiceName);
            if (host == null)
                host = channel.ResolvedTarget ?? channel.Target;
            return new CallInvocationDetails<TRequest, TResponse>(channel, method, host, options);
        }
protected virtual CallInvocationDetails < TRequest , TResponse > CreateCall < TRequest , TResponse > ( Method < TRequest , TResponse > method , string host , CallOptions options ) where TRequest : class where TResponse : class { var channel = _channelProvider . GetChannel ( method . ServiceName ) ; if ( host == null ) host = channel . ResolvedTarget ?? channel . Target ; return new CallInvocationDetails < TRequest , TResponse > ( channel , method , host , options ) ; }
Creates call invocation details for given method.
Creates call invocation details for given method .
method
Method<TRequest, TResponse>
host
string
options
CallOptions