예제 #1
0
 // Constructor that can be used by tests to pass in mock objects.
 internal SbPlatformImpl(GrpcConnection connection, GrpcErrorFactory sbErrorFactory,
                         SbPlatformRpcService.SbPlatformRpcServiceClient client)
 {
     this.sbErrorFactory = sbErrorFactory;
     this.client         = client;
     this.connection     = connection;
 }
예제 #2
0
 internal SbProcessImpl(GrpcConnection connection, GrpcSbProcess grpcSbProcess,
                        GrpcThreadFactory threadFactory, GrpcTargetFactory targetFactory,
                        GrpcUnixSignalsFactory unixSignalsFactory,
                        GrpcErrorFactory errorFactory,
                        SbProcessRpcService.SbProcessRpcServiceClient client)
 {
     this.connection         = connection;
     this.grpcSbProcess      = grpcSbProcess;
     this.client             = client;
     this.threadFactory      = threadFactory;
     this.targetFactory      = targetFactory;
     this.unixSignalsFactory = unixSignalsFactory;
     this.errorFactory       = errorFactory;
 }
예제 #3
0
 public RemoteTargetProxy(GrpcConnection connection, GrpcSbTarget grpcSbTarget,
                          RemoteTargetRpcService.RemoteTargetRpcServiceClient client,
                          GrpcBreakpointFactory breakpointFactory, GrpcErrorFactory errorFactory,
                          GrpcProcessFactory processFactory, GrpcModuleFactory moduleFactory,
                          GrpcWatchpointFactory watchpointFactory, GrpcAddressFactory addressFactory)
 {
     this.connection        = connection;
     this.grpcSbTarget      = grpcSbTarget;
     this.client            = client;
     this.breakpointFactory = breakpointFactory;
     this.errorFactory      = errorFactory;
     this.processFactory    = processFactory;
     this.moduleFactory     = moduleFactory;
     this.watchpointFactory = watchpointFactory;
     this.addressFactory    = addressFactory;
 }
예제 #4
0
        // <summary>
        // Used by tests to pass in mock objects.
        // </summary>
        internal RemoteThreadProxy(GrpcConnection connection, GrpcSbThread grpcSbThread,
                                   RemoteThreadRpcService.RemoteThreadRpcServiceClient client,
                                   RemoteFrameProxyFactory frameFactory, GrpcProcessFactory processFactory,
                                   GrpcErrorFactory errorFactory, GrpcModuleFactory moduleFactory)
        {
            this.connection     = connection;
            this.grpcSbThread   = grpcSbThread;
            this.client         = client;
            this.frameFactory   = frameFactory;
            this.processFactory = processFactory;
            this.errorFactory   = errorFactory;
            this.moduleFactory  = moduleFactory;

            gcHandle = GCHandle.Alloc(
                new Tuple <GrpcConnection, RemoteThreadRpcService.RemoteThreadRpcServiceClient,
                           GrpcSbThread>(connection, client, grpcSbThread));
        }
예제 #5
0
        internal RemoteValueProxy(
            GrpcConnection connection, RemoteValueRpcServiceClient client,
            GrpcSbValue grpcSbValue, GrpcValueFactory valueFactory, GrpcErrorFactory errorFactory,
            GrpcTypeFactory typeFactory, CachedValueFactory cachedValueFactory)
        {
            this.connection         = connection;
            this.client             = client;
            this.grpcSbValue        = grpcSbValue;
            this.valueFactory       = valueFactory;
            this.errorFactory       = errorFactory;
            this.typeFactory        = typeFactory;
            this.cachedValueFactory = cachedValueFactory;

            // Keep a handle to objects we need in the destructor.
            gcHandle = GCHandle.Alloc(
                new Tuple <GrpcConnection, RemoteValueRpcServiceClient, GrpcSbValue>(
                    connection, client, grpcSbValue));
        }