Exemple #1
0
 /// <summary>
 /// Creates a new instance of the object.
 /// </summary>
 public TorMonitor(TimeSpan period, Uri fallbackBackendUri, TorHttpClient httpClient, TorProcessManager torProcessManager) : base(period)
 {
     FallbackBackendUri = fallbackBackendUri;
     HttpClient         = httpClient;
     TorProcessManager  = torProcessManager;
 }
Exemple #2
0
 /// <summary>
 /// Creates a new instance of the object.
 /// </summary>
 public TorMonitor(TimeSpan period, Uri fallBackTestRequestUri, EndPoint torSocks5EndPoint, TorProcessManager torProcessManager) : base(period)
 {
     FallBackTestRequestUri = fallBackTestRequestUri;
     TorSocks5EndPoint      = torSocks5EndPoint;
     TorProcessManager      = torProcessManager;
 }
 /// <summary>
 /// Creates a new instance of the object.
 /// </summary>
 public TorMonitor(TorProcessManager torProcessManager)
 {
     _monitorState     = StateNotStarted;
     MonitorCts        = new CancellationTokenSource();
     TorProcessManager = torProcessManager;
 }