Exemple #1
0
 public Task Stop()
 {
     return(SimulacronBase.DeleteAsync($"/listener/{Id}?type=stop"));
 }
Exemple #2
0
 public Task PrimeDeleteAsync()
 {
     return(SimulacronBase.DeleteAsync(GetPath("prime")));
 }
Exemple #3
0
 public Task DisableConnectionListener(int attempts = 0, string type = "unbind")
 {
     return(SimulacronBase.DeleteAsync(GetPath("listener") + "?after=" + attempts + "&type=" + type));
 }
 public Task ResumeReadsAsync()
 {
     return(SimulacronBase.DeleteAsync(GetPath("pause-reads")));
 }
 public async Task RemoveAsync()
 {
     await SimulacronBase.DeleteAsync(GetPath("cluster")).ConfigureAwait(false);
 }
 public Task DropConnection(string ip, int port)
 {
     return(SimulacronBase.DeleteAsync(GetPath("connection") + "/" + ip + "/" + port));
 }