Esempio n. 1
0
        internal SbAddressImpl(
            GrpcConnection connection, SbAddressRpcServiceClient client,
            GrpcSbAddress grpcSbAddress,
            GrpcFunctionFactory functionFactory,
            GrpcSymbolFactory symbolFactory)
        {
            this.connection      = connection;
            this.client          = client;
            this.grpcSbAddress   = grpcSbAddress;
            this.functionFactory = functionFactory;
            this.symbolFactory   = symbolFactory;

            // Keep a handle to objects we need in the destructor.
            gcHandle = GCHandle.Alloc(
                new Tuple <GrpcConnection, SbAddressRpcServiceClient, GrpcSbAddress>(
                    connection, client, grpcSbAddress));
        }
Esempio n. 2
0
        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));
        }