/// <summary>
 /// Stops the message pump
 /// </summary>
 public void Stop()
 {
     _client.Close();
     _cache.WaitForAllTasksToComplete();
 }
예제 #2
0
 /// <summary>
 /// Blocks untill all the tasks currently cached to complete. This will take 5+ seconds
 /// </summary>
 public void WaitForCompletion()
 {
     _cache.WaitForAllTasksToComplete();
 }