private void OnNotifyError(ISubscriber subscriber, Exception ex) { if (this.NotifyError == null) { return; } MessageNotifyErrorEventArgs args = new MessageNotifyErrorEventArgs(subscriber, ex); System.Threading.ThreadPool.QueueUserWorkItem(delegate(object state) { this.NotifyError(this, state as MessageNotifyErrorEventArgs); }, args); }
private void Instance_NotifyError(object sender, MessageNotifyErrorEventArgs e) { Logger.AppendInfo(e.Subscriber.Mac + ":" + e.Subscriber.ToString(), e.Error); }