예제 #1
0
        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);
        }
예제 #2
0
 private void Instance_NotifyError(object sender, MessageNotifyErrorEventArgs e)
 {
     Logger.AppendInfo(e.Subscriber.Mac + ":" + e.Subscriber.ToString(), e.Error);
 }