internal SbTypeImpl( GrpcConnection connection, SbTypeRpcServiceClient client, GrpcSbType grpcSbType, GrpcTypeFactory typeFactory, GrpcTypeMemberFactory typeMemberFactory) { this.connection = connection; this.client = client; this.grpcSbType = grpcSbType; this.typeFactory = typeFactory; this.typeMemberFactory = typeMemberFactory; // Keep a handle to objects we need in the destructor. gcHandle = GCHandle.Alloc( new Tuple <GrpcConnection, SbTypeRpcServiceClient, GrpcSbType>( connection, client, grpcSbType)); }
internal SbTypeImpl(GrpcConnection connection, GrpcSbType grpcSbType) : this(connection, new SbTypeRpcServiceClient(connection.CallInvoker), grpcSbType, new GrpcTypeFactory(), new GrpcTypeMemberFactory()) { }
public virtual SbType Create(GrpcConnection connection, GrpcSbType grpcSbType) { return(new SbTypeImpl(connection, grpcSbType)); }