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; }
// <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)); }