protected GrpcProxyBase(GrpcProxyArgs proxyArgs, GrpcProxyMethod[] proxyMethods) : base(proxyArgs, proxyMethods) { if (proxyArgs is null) { throw new ArgumentNullException(nameof(proxyArgs)); } this.grpcInvoker = proxyArgs.CallInvoker; this.Serializer = proxyArgs.Serializer; this.grpcMethodsCache = proxyArgs.MethodsCache; }
internal GrpcProxyArgs(IRpcChannel connection, GrpcCore.CallInvoker callInvoker, RpcObjectId objectId, GrpcMethodsCache methodsCache, IRpcSerializer serializer, IReadOnlyCollection <string>?implementedServices, SynchronizationContext?syncContext) : base(connection, objectId, serializer, implementedServices, syncContext) { this.CallInvoker = callInvoker; this.MethodsCache = methodsCache; }
/// <summary>Creates a new client for Messaging that uses a custom <c>CallInvoker</c>.</summary> /// <param name="callInvoker">The callInvoker to use to make remote calls.</param> public MessagingClient(grpc.CallInvoker callInvoker) : base(callInvoker) { }