Exemplo n.º 1
0
        internal SbTypeMemberImpl(
            GrpcConnection connection, SbTypeMemberRpcServiceClient client,
            GrpcSbTypeMember grpcSbTypeMember, GrpcTypeFactory typeFactory)
        {
            this.connection       = connection;
            this.client           = client;
            this.grpcSbTypeMember = grpcSbTypeMember;
            this.typeFactory      = typeFactory;

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