示例#1
0
        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));
        }
示例#2
0
 internal SbTypeImpl(GrpcConnection connection, GrpcSbType grpcSbType)
     : this(connection,
            new SbTypeRpcServiceClient(connection.CallInvoker), grpcSbType,
            new GrpcTypeFactory(), new GrpcTypeMemberFactory())
 {
 }
示例#3
0
 public virtual SbType Create(GrpcConnection connection, GrpcSbType grpcSbType)
 {
     return(new SbTypeImpl(connection, grpcSbType));
 }