internal RemoteValueProxy( GrpcConnection connection, RemoteValueRpcServiceClient client, GrpcSbValue grpcSbValue, GrpcValueFactory valueFactory, GrpcErrorFactory errorFactory, GrpcTypeFactory typeFactory, CachedValueFactory cachedValueFactory) { this.connection = connection; this.client = client; this.grpcSbValue = grpcSbValue; this.valueFactory = valueFactory; this.errorFactory = errorFactory; this.typeFactory = typeFactory; this.cachedValueFactory = cachedValueFactory; // Keep a handle to objects we need in the destructor. gcHandle = GCHandle.Alloc( new Tuple <GrpcConnection, RemoteValueRpcServiceClient, GrpcSbValue>( connection, client, grpcSbValue)); }
internal RemoteFrameProxy(GrpcConnection connection, GrpcSbFrame grpcSbFrame, RemoteFrameRpcService.RemoteFrameRpcServiceClient client, GrpcModuleFactory moduleFactory, GrpcThreadFactory threadFactory, GrpcValueFactory valueFactory, GrpcFunctionFactory functionFactory, GrpcSymbolFactory symbolFactory) { this.connection = connection; this.grpcSbFrame = grpcSbFrame; this.client = client; this.moduleFactory = moduleFactory; this.threadFactory = threadFactory; this.valueFactory = valueFactory; this.functionFactory = functionFactory; this.symbolFactory = symbolFactory; // Keep a handle to objects we need in the destructor. gcHandle = GCHandle.Alloc( new Tuple < GrpcConnection, RemoteFrameRpcService.RemoteFrameRpcServiceClient, GrpcSbFrame> (connection, client, grpcSbFrame)); }