/// <summary>
 /// The OnPublisherWarning handler.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 private void OnPublisherWarning(object sender, MessagingExceptionEventArgs args)
 {
     Trace.TraceWarning(
         "[Machine Name: {0}][DeploymentId: {1}][Role: {2}][Role Instance Id: {3}] Exception: {4}",
         this.MachineName,
         this.DeploymentId,
         this.RoleInstanceName,
         this.RoleInstanceId,
         args.Exception);
 }
 /// <summary>
 /// The OnPublisherException handler.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 private void OnPublisherException(object sender, MessagingExceptionEventArgs args)
 {
     Trace.TraceError(
         string.Format(
             CultureInfo.InvariantCulture,
             "[Machine Name: {0}][DeploymentId: {1}][Role: {2}][Role Instance Id: {3}] Exception: {4}",
             this.MachineName,
             this.DeploymentId,
             this.RoleInstanceName,
             this.RoleInstanceId,
             args.Exception));
 }
Exemplo n.º 3
0
 private void OnWorkerWarning(object sender, MessagingExceptionEventArgs args)
 {
     try
     {
         this.workerEventWriter.Warning(
             this.MachineName,
             this.DeploymentId,
             this.RoleInstanceName,
             this.RoleInstanceId,
             sender.ToString(),
             args.Exception.ToString());
     }
     catch (Exception ex)
     {
         Trace.TraceError(ex.ToString());
     }
 }
Exemplo n.º 4
0
        private void OnSubscriberException(object sender, MessagingExceptionEventArgs args)
        {
            try
            {
                var subscriber = (ISubscriber)sender;
                var name       = subscriber.GetType().Name;

                this.subscriberEventWriter.Error(
                    this.MachineName,
                    this.DeploymentId,
                    this.RoleInstanceName,
                    this.RoleInstanceId,
                    name,
                    args.Exception.ToString());
            }
            catch (Exception ex)
            {
                Trace.TraceError(ex.ToString());
            }
        }
Exemplo n.º 5
0
        private void OnPublisherWarning(object sender, MessagingExceptionEventArgs args)
        {
            try
            {
                var publisher = (IPublisher)sender;
                var name      = publisher.GetType().Name;

                this.publisherEventWriter.Warning(
                    this.MachineName,
                    this.DeploymentId,
                    this.RoleInstanceName,
                    this.RoleInstanceId,
                    name,
                    args.Exception.ToString());
            }
            catch (Exception ex)
            {
                Trace.TraceError(ex.ToString());
            }
        }
Exemplo n.º 6
0
        private void OnBridgeException(object sender, MessagingExceptionEventArgs args)
        {
            try
            {
                var bridge = (IMessageBusBridge)sender;
                var name   = bridge.GetType().Name;

                this.bridgeEventWriter.Error(
                    this.MachineName,
                    this.DeploymentId,
                    this.RoleInstanceName,
                    this.RoleInstanceId,
                    name,
                    args.Exception.ToString());
            }
            catch (Exception ex)
            {
                Trace.TraceError(ex.ToString());
            }
        }
Exemplo n.º 7
0
        private void OnMessageBusWarning(object sender, MessagingExceptionEventArgs args)
        {
            try
            {
                var bus  = (IMessageBus)sender;
                var name = bus.GetType().Name;

                this.messageBusEventWriter.Warning(
                    this.MachineName,
                    this.DeploymentId,
                    this.RoleInstanceName,
                    this.RoleInstanceId,
                    name,
                    args.Exception.ToString());
            }
            catch (Exception ex)
            {
                Trace.TraceError(ex.ToString());
            }
        }
        private void OnPublisherWarning(object sender, MessagingExceptionEventArgs args)
        {
            try
            {
                var publisher = (IPublisher)sender;
                var name = publisher.GetType().Name;

                this.publisherEventWriter.Warning(
                    this.MachineName, 
                    this.DeploymentId, 
                    this.RoleInstanceName, 
                    this.RoleInstanceId, 
                    name, 
                    args.Exception.ToString());
            }
            catch (Exception ex)
            {
                Trace.TraceError(ex.ToString());
            }
        }
        /// <summary>
        /// The OnPublisherException handler.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="args">
        /// The args.
        /// </param>
        private void OnPublisherException(object sender, MessagingExceptionEventArgs args)
        {
            try
            {
                var bridge = (IPublisher)sender;
                var name = bridge.GetType().Name;

                Debug.Print(
                    "[Machine Name: {0}][DeploymentId: {1}][Role: {2}][Role Instance Id: {3}] [Publisher: {4} Exception: {5}", 
                    this.MachineName, 
                    this.DeploymentId, 
                    this.RoleInstanceName, 
                    this.RoleInstanceId, 
                    name, 
                    args.Exception);
            }
            catch (InvalidCastException ex)
            {
                Debug.Print(ex.ToString());
            }
            catch (NullReferenceException ex)
            {
                Debug.Print(ex.ToString());
            }
            catch (ArgumentNullException ex)
            {
                Debug.Print(ex.ToString());
            }
            catch (FormatException ex)
            {
                Debug.Print(ex.ToString());
            }
        }
 /// <summary>
 /// The OnPublisherException handler.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 private void OnPublisherException(object sender, MessagingExceptionEventArgs args)
 {
     Trace.TraceError(
         string.Format(
             CultureInfo.InvariantCulture, 
             "[Machine Name: {0}][DeploymentId: {1}][Role: {2}][Role Instance Id: {3}] Exception: {4}", 
             this.MachineName, 
             this.DeploymentId, 
             this.RoleInstanceName, 
             this.RoleInstanceId, 
             args.Exception));
 }
 /// <summary>
 /// The OnWorkerWarning handler.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 private void OnWorkerWarning(object sender, MessagingExceptionEventArgs args)
 {
     try
     {
         Debug.Print(
             "[Machine Name: {0}][DeploymentId: {1}][Role: {2}][Role Instance Id: {3}] Exception: {4}", 
             this.MachineName, 
             this.DeploymentId, 
             this.RoleInstanceName, 
             this.RoleInstanceId, 
             args.Exception);
     }
     catch (ArgumentNullException ex)
     {
         Debug.Print(ex.ToString());
     }
     catch (FormatException ex)
     {
         Debug.Print(ex.ToString());
     }
 }
 /// <summary>
 /// The OnBridgeException handler.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 private void OnBridgeException(object sender, MessagingExceptionEventArgs args)
 {
     Debug.Print(
         "[Machine Name: {0}][DeploymentId: {1}][Role: {2}][Role Instance Id: {3}] Exception: {4}", 
         this.MachineName, 
         this.DeploymentId, 
         this.RoleInstanceName, 
         this.RoleInstanceId, 
         args.Exception);
 }
 /// <summary>
 /// The OnPublisherWarning handler.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 private void OnPublisherWarning(object sender, MessagingExceptionEventArgs args)
 {
     Trace.TraceWarning(
         "[Machine Name: {0}][DeploymentId: {1}][Role: {2}][Role Instance Id: {3}] Exception: {4}", 
         this.MachineName, 
         this.DeploymentId, 
         this.RoleInstanceName, 
         this.RoleInstanceId, 
         args.Exception);
 }
 /// <summary>
 /// The OnWorkerWarning handler.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 private void OnWorkerWarning(object sender, MessagingExceptionEventArgs args)
 {
     this.ExceptionArgs = args;
     this.NumberEventsFired++;
 }
        private void OnMessageBusWarning(object sender, MessagingExceptionEventArgs args)
        {
            try
            {
                var bus = (IMessageBus)sender;
                var name = bus.GetType().Name;

                this.messageBusEventWriter.Warning(
                    this.MachineName, 
                    this.DeploymentId, 
                    this.RoleInstanceName, 
                    this.RoleInstanceId, 
                    name, 
                    args.Exception.ToString());
            }
            catch (Exception ex)
            {
                Trace.TraceError(ex.ToString());
            }
        }
        private void OnBridgeException(object sender, MessagingExceptionEventArgs args)
        {
            try
            {
                var bridge = (IMessageBusBridge)sender;
                var name = bridge.GetType().Name;

                this.bridgeEventWriter.Error(
                    this.MachineName, 
                    this.DeploymentId, 
                    this.RoleInstanceName, 
                    this.RoleInstanceId, 
                    name, 
                    args.Exception.ToString());
            }
            catch (Exception ex)
            {
                Trace.TraceError(ex.ToString());
            }
        }
 private void OnWorkerWarning(object sender, MessagingExceptionEventArgs args)
 {
     try
     {
         this.workerEventWriter.Warning(
             this.MachineName, 
             this.DeploymentId, 
             this.RoleInstanceName, 
             this.RoleInstanceId, 
             sender.ToString(), 
             args.Exception.ToString());
     }
     catch (Exception ex)
     {
         Trace.TraceError(ex.ToString());
     }
 }
 /// <summary>
 /// The OnWorkerWarning handler.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 private void OnWorkerWarning(object sender, MessagingExceptionEventArgs args)
 {
     this.ExceptionArgs = args;
     this.NumberEventsFired++;
 }
 /// <summary>
 /// The OnSubscriberException handler.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 private void OnSubscriberException(object sender, MessagingExceptionEventArgs args)
 {
     this.ExceptionArgs = args;
     this.NumberEventsFired++;
 }
        private void OnSubscriberException(object sender, MessagingExceptionEventArgs args)
        {
            try
            {
                var subscriber = (ISubscriber)sender;
                var name = subscriber.GetType().Name;

                this.subscriberEventWriter.Error(
                    this.MachineName, 
                    this.DeploymentId, 
                    this.RoleInstanceName, 
                    this.RoleInstanceId, 
                    name, 
                    args.Exception.ToString());
            }
            catch (Exception ex)
            {
                Trace.TraceError(ex.ToString());
            }
        }
 /// <summary>
 /// The OnSubscriberException handler.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 private void OnSubscriberException(object sender, MessagingExceptionEventArgs args)
 {
     this.ExceptionArgs = args;
     this.NumberEventsFired++;
 }