public IServerStreamingMethodCall <TResponse> CallServerStreaming <TRequest, TResponse>(MethodCallDescriptor descriptor, TRequest request) { _log.Debug("Starting server streaming call: {0}", descriptor); var call = new ServerStreamingMethodCall <TRequest, TResponse>(() => _outcomingInvocationFactory.CreateAsync <TRequest, TResponse>(descriptor, request)); call.Start(); return(call); }
public IServerStreamingMethodCall <TResponse> CallServerStreaming <TRequest, TResponse>(MethodCallDescriptor descriptor, TRequest request, ContextLinkageOptions contextLinkageOptions = default) { CheckConnectionState(); _log.Debug("Starting server streaming call: {0}", descriptor); var call = new ServerStreamingMethodCall <TRequest, TResponse>(() => _outcomingInvocationFactory.CreateAsync <TRequest, TResponse>(descriptor, request, contextLinkageOptions)); call.Start(); return(call); }