コード例 #1
0
 internal RemoteBreakpointProxy(
     GrpcConnection connection, RemoteBreakpointRpcServiceClient client,
     GrpcSbBreakpoint grpcSbBreakpoint,
     GrpcBreakpointLocationFactory breakpointLocationFactory)
 {
     this.connection                = connection;
     this.client                    = client;
     this.grpcSbBreakpoint          = grpcSbBreakpoint;
     this.breakpointLocationFactory = breakpointLocationFactory;
 }
コード例 #2
0
        internal static RemoteBreakpoint GetBreakpoint(
            ConcurrentDictionary <long, RemoteTarget> targetStore,
            GrpcSbBreakpoint grpcSbBreakpoint)
        {
            RemoteTarget target = null;

            if (!targetStore.TryGetValue(grpcSbBreakpoint.Target.Id, out target))
            {
                ErrorUtils.ThrowError(StatusCode.Internal,
                                      "Could not find target in store: " + grpcSbBreakpoint.Target.Id);
            }
            var breakpoint = target.FindBreakpointById(grpcSbBreakpoint.Id);

            if (breakpoint == null)
            {
                ErrorUtils.ThrowError(StatusCode.Internal,
                                      "Could not find breakpoint in target: " + grpcSbBreakpoint.Id);
            }
            return(breakpoint);
        }
コード例 #3
0
 internal RemoteBreakpointProxy(GrpcConnection connection, GrpcSbBreakpoint grpcSbBreakpoint)
     : this(connection,
            new RemoteBreakpointRpcServiceClient(connection.CallInvoker),
            grpcSbBreakpoint, new GrpcBreakpointLocationFactory())
 {
 }
コード例 #4
0
 public virtual RemoteBreakpoint Create(
     GrpcConnection connection, GrpcSbBreakpoint grpcSbBreakpoint)
 {
     return(new RemoteBreakpointProxy(connection, grpcSbBreakpoint));
 }