protected virtual void OnSendProgress(ProgressEventArgs e) { EventHandler<ProgressEventArgs> handler = SendProgress; if (handler != null) handler(this, e); }
protected virtual void OnReceiveProgress(ProgressEventArgs e) { var handler = ReceiveProgress; if (handler != null) handler(this, e); }