Ejemplo n.º 1
0
        internal SbUnixSignalsImpl(GrpcConnection connection, GrpcSbUnixSignals grpcSbUnixSignals)
        {
            this.connection        = connection;
            client                 = new SbUnixSignalsRpcServiceClient(connection.CallInvoker);
            this.grpcSbUnixSignals = grpcSbUnixSignals;

            // Keep a handle to objects we need in the destructor.
            gcHandle = GCHandle.Alloc(
                new Tuple <GrpcConnection, SbUnixSignalsRpcServiceClient, GrpcSbUnixSignals>(
                    connection, client, grpcSbUnixSignals));
        }
Ejemplo n.º 2
0
 public virtual SbUnixSignals Create(
     GrpcConnection connection, GrpcSbUnixSignals grpcSbUnixSignals)
 {
     return(new SbUnixSignalsImpl(connection, grpcSbUnixSignals));
 }