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)); }
internal SbAddressImpl(GrpcConnection connection, GrpcSbAddress grpcSbAddress) : this(connection, new SbAddressRpcServiceClient(connection.CallInvoker), grpcSbAddress, new GrpcFunctionFactory(), new GrpcSymbolFactory()) { }
public virtual SbAddress Create( GrpcConnection connection, GrpcSbAddress grpcSbAddress) { return(new SbAddressImpl(connection, grpcSbAddress)); }