Exemple #1
0
 private Task OnClosing(bool brokenConnection)
 {
     if (Closing != null)
     {
         return(Closing.InvokeAllAsync(this, new ClosingEventArgs(brokenConnection)));
     }
     else
     {
         return(Task.CompletedTask);
     }
 }