public IUnaryMethodCall CallUnary <TRequest>(MethodCallDescriptor descriptor, TRequest request) { _log.Debug("Starting unary call: {0}", descriptor); var call = new UnaryMethodCall <TRequest, Nothing>(() => _outcomingInvocationFactory.CreateAsync <TRequest, Nothing>(descriptor, request)); call.Start(); return(call); }
public IUnaryMethodCall <TResponse> CallUnary <TRequest, TResponse>(MethodCallDescriptor descriptor, TRequest request, ContextLinkageOptions contextLinkageOptions = default) { _log.Debug("Starting unary call: {0}", descriptor); var call = new UnaryMethodCall <TRequest, TResponse>(() => _outcomingInvocationFactory.CreateAsync <TRequest, TResponse>(descriptor, request, contextLinkageOptions)); call.Start(); return(call); }