Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 3
0
 /// <summary>
 /// Creates a new instance of the object.
 /// </summary>
 public TorMonitor(TorProcessManager torProcessManager)
 {
     _monitorState     = StateNotStarted;
     MonitorCts        = new CancellationTokenSource();
     TorProcessManager = torProcessManager;
 }