예제 #1
0
        private void RaiseError(PusherException error)
        {
            var handler = Error;

            if (handler != null)
            {
                handler(this, error);
            }
            else
            {
                Pusher.Trace.TraceEvent(TraceEventType.Error, 0, error.ToString());
            }
        }
예제 #2
0
        private void RaiseError(PusherException error)
        {
            // if a handler is registerd, use it, otherwise just trace. No code can catch exception here if thrown.
            var handler = Error;

            if (handler != null)
            {
                handler(this, error);
            }
            else
            {
                Pusher.Trace.TraceEvent(TraceEventType.Error, 0, error.ToString());
            }
        }
 static void _pusher_Error(object sender, PusherException error)
 {
     Console.WriteLine("Pusher Error: " + error.ToString());
 }