Beispiel #1
0
 public async Task GetNewIdentityAsync()
 {
     var client = new TorControlClient();
     await client.ConnectAsync("localhost", _settings.TorControlPort);
     await client.AuthenticateAsync(_settings.TorControlPassword);
     await client.CleanCircuitsAsync();
     client.Close();
 }
Beispiel #2
0
 public async Task GetNewIdentityAsync()
 {
     using (var client = new TorControlClient())
     {
         await client.ConnectAsync("localhost", _settings.TorControlPort).ConfigureAwait(false);
         await client.AuthenticateAsync(_settings.TorControlPassword).ConfigureAwait(false);
         await client.CleanCircuitsAsync().ConfigureAwait(false);
     }
 }