/// <summary> /// Create a new <see cref="BreakpointActionServer"/>. /// </summary> /// <param name="server">The breakpoint server to communicate with.</param> /// <param name="cts"> A cancellation token source to cancel if the server receives a shutdown command.</param> /// <param name="minBackOffWaitTime">The minimum amount of time we will sleep when backing off failed RPC calls.</param> /// <param name="maxBackOffWaitTime">The maximum amount of time we will sleep when backing off failed RPC calls</param> public BreakpointActionServer(IBreakpointServer server, CancellationTokenSource cts, TimeSpan?minBackOffWaitTime = null, TimeSpan?maxBackOffWaitTime = null) { _cts = GaxPreconditions.CheckNotNull(cts, nameof(cts)); _server = GaxPreconditions.CheckNotNull(server, nameof(server)); _minBackOffWaitTime = minBackOffWaitTime ?? _defaultMinBackOffWaitTime; _maxBackOffWaitTime = maxBackOffWaitTime ?? _defaultMaxBackOffWaitTime; }
/// <summary> /// Create a new <see cref="BreakpointReadActionServer"/>. /// </summary> /// <param name="server">The breakpoint server to communicate with.</param> /// <param name="cts"> A cancellation token source to cancel if the server receives a shutdown command.</param> /// <param name="client">The debugger client to send updated breakpoints to.</param> /// <param name="breakpointManager">A shared breakpoint manager.</param> public BreakpointReadActionServer(IBreakpointServer server, CancellationTokenSource cts, IDebuggerClient debuggerClient, ILoggingClient loggingClient, BreakpointManager breakpointManager) : base(server, cts) { _debuggerClient = GaxPreconditions.CheckNotNull(debuggerClient, nameof(debuggerClient)); _loggingClient = GaxPreconditions.CheckNotNull(loggingClient, nameof(loggingClient)); _breakpointManager = GaxPreconditions.CheckNotNull(breakpointManager, nameof(breakpointManager)); }
public FakeBreakpointActionServer(IBreakpointServer server) : base(server, new CancellationTokenSource(), _minBackOffWaitTime, _maxBackOffWaitTime) { }
/// <summary> /// Create a new <see cref="BreakpointWriteActionServer"/>. /// </summary> /// <param name="server">The breakpoint server to communicate with.</param> /// <param name="cts"> A cancellation token source to cancel if the server receives a shutdown command.</param> /// <param name="client">The debugger client to send updated breakpoints to.</param> /// <param name="breakpointManager">A shared breakpoint manager.</param> public BreakpointWriteActionServer(IBreakpointServer server, CancellationTokenSource cts, IDebuggerClient client, BreakpointManager breakpointManager) : base(server, cts) { _client = GaxPreconditions.CheckNotNull(client, nameof(client)); _breakpointManager = GaxPreconditions.CheckNotNull(breakpointManager, nameof(breakpointManager)); }