Ejemplo n.º 1
0
        internal SbSymbolImpl(
            GrpcConnection connection, SbSymbolRpcServiceClient client,
            GrpcSbSymbol grpcSbSymbol, GrpcAddressFactory addressFactory)
        {
            this.connection     = connection;
            this.client         = client;
            this.grpcSbSymbol   = grpcSbSymbol;
            this.addressFactory = addressFactory;

            // Keep a handle to objects we need in the destructor.
            gcHandle = GCHandle.Alloc(
                new Tuple <GrpcConnection, SbSymbolRpcServiceClient, GrpcSbSymbol>(
                    connection, client, grpcSbSymbol));
        }
Ejemplo n.º 2
0
 internal SbSymbolImpl(GrpcConnection connection, GrpcSbSymbol grpcSbSymbol)
     : this(connection,
            new SbSymbolRpcServiceClient(connection.CallInvoker),
            grpcSbSymbol, new GrpcAddressFactory())
 {
 }
Ejemplo n.º 3
0
 public virtual SbSymbol Create(GrpcConnection connection, GrpcSbSymbol grpcSbSymbol)
 {
     return(new SbSymbolImpl(connection, grpcSbSymbol));
 }