using System; using Google.GRPC.Core.Internal; namespace Google.GRPC.Core { public class Call { readonly string methodName; readonly Func requestSerializer; readonly Func responseDeserializer; readonly TimeSpan timeout; readonly Channel channel; // TODO: channel param should be removed in the future. public Call(string methodName, Func requestSerializer, Func responseDeserializer, TimeSpan timeout, Channel channel) { this.methodName = methodName; this.requestSerializer = requestSerializer; this.responseDeserializer = responseDeserializer; this.timeout = timeout; this.channel = channel; } public Channel Channel { get { return this.channel; } } public TimeSpan Timeout { get { return this.timeout; } } public string MethodName { get { return this.methodName; } } public Func RequestSerializer { get { return this.requestSerializer; } } public Func ResponseDeserializer { get { return this.responseDeserializer; } } } }