Beispiel #1
0
        public override void Initialize(IActivityMonitor monitor)
        {
            base.Initialize(monitor);

            if (monitor == null)
            {
                return;
            }

            this.bridgeEventWriter     = new BridgeEventTraceWriter();
            this.messageBusEventWriter = new MessageBusEventTraceWriter();
            this.publisherEventWriter  = new PublisherEventTraceWriter();
            this.subscriberEventWriter = new SubscriberEventTraceWriter();
            this.workerEventWriter     = new WorkerEventTraceWriter();

            monitor.BridgeClosed                 += this.OnBridgeClosed;
            monitor.BridgeClosing                += this.OnBridgeClosing;
            monitor.BridgeInitialized            += this.OnBridgeInitialized;
            monitor.BridgeInitializing           += this.OnBridgeInitializing;
            monitor.BridgeTransferred            += this.OnBridgeTransferred;
            monitor.BridgeTransferring           += this.OnBridgeTransferring;
            monitor.BridgeException              += this.OnBridgeException;
            monitor.BridgeWarning                += this.OnBridgeWarning;
            monitor.MessageBusWarning            += this.OnMessageBusWarning;
            monitor.MessageBusException          += this.OnMessageBusException;
            monitor.MessageBusClosed             += this.OnMessageBusClosed;
            monitor.MessageBusClosing            += this.OnMessageBusClosing;
            monitor.MessageBusRegisteredHandler  += this.OnMessageBusHandlerRegistered;
            monitor.MessageBusRegisteringHandler += this.OnMessageBusHandlerRegistering;
            monitor.MessageBusSending            += this.OnMessageBusMessageSending;
            monitor.MessageBusSent               += this.OnMessageBusMessageSent;
            monitor.PublisherWarning             += this.OnPublisherWarning;
            monitor.PublisherException           += this.OnPublisherException;
            monitor.PublisherClosed              += this.OnPublisherClosed;
            monitor.PublisherClosing             += this.OnPublisherClosing;
            monitor.PublisherInitializing        += this.OnPublisherInitializing;
            monitor.PublisherInitialized         += this.OnPublisherInitialized;
            monitor.PublisherSending             += this.OnPublisherSending;
            monitor.PublisherSent                += this.OnPublisherSent;
            monitor.SubscriberWarning            += this.OnSubscriberWarning;
            monitor.SubscriberException          += this.OnSubscriberException;
            monitor.SubscriberClosed             += this.OnSubscriberClosed;
            monitor.SubscriberClosing            += this.OnSubscriberClosing;
            monitor.SubscriberInitialized        += this.OnSubscriberInitialized;
            monitor.SubscriberInitializing       += this.OnSubscriberInitializing;
            monitor.SubscriberReceived           += this.OnSubscriberReceived;
            monitor.SubscriberReceiving          += this.OnSubscriberReceiving;
            monitor.WorkerRunning                += this.OnWorkerRunning;
            monitor.WorkerStarted                += this.OnWorkerStarted;
            monitor.WorkerStarting               += this.OnWorkerStarting;
            monitor.WorkerStopped                += this.OnWorkerStopped;
            monitor.WorkerStopping               += this.OnWorkerStopping;
            monitor.WorkerCompleted              += this.OnWorkerCompleted;
            monitor.WorkerException              += this.OnWorkerException;
            monitor.WorkerWarning                += this.OnWorkerWarning;
        }
        public override void Initialize(IActivityMonitor monitor)
        {
            base.Initialize(monitor);

            if (monitor == null)
            {
                return;
            }

            this.bridgeEventWriter = new BridgeEventTraceWriter();
            this.messageBusEventWriter = new MessageBusEventTraceWriter();
            this.publisherEventWriter = new PublisherEventTraceWriter();
            this.subscriberEventWriter = new SubscriberEventTraceWriter();
            this.workerEventWriter = new WorkerEventTraceWriter();

            monitor.BridgeClosed += this.OnBridgeClosed;
            monitor.BridgeClosing += this.OnBridgeClosing;
            monitor.BridgeInitialized += this.OnBridgeInitialized;
            monitor.BridgeInitializing += this.OnBridgeInitializing;
            monitor.BridgeTransferred += this.OnBridgeTransferred;
            monitor.BridgeTransferring += this.OnBridgeTransferring;
            monitor.BridgeException += this.OnBridgeException;
            monitor.BridgeWarning += this.OnBridgeWarning;
            monitor.MessageBusWarning += this.OnMessageBusWarning;
            monitor.MessageBusException += this.OnMessageBusException;
            monitor.MessageBusClosed += this.OnMessageBusClosed;
            monitor.MessageBusClosing += this.OnMessageBusClosing;
            monitor.MessageBusRegisteredHandler += this.OnMessageBusHandlerRegistered;
            monitor.MessageBusRegisteringHandler += this.OnMessageBusHandlerRegistering;
            monitor.MessageBusSending += this.OnMessageBusMessageSending;
            monitor.MessageBusSent += this.OnMessageBusMessageSent;
            monitor.PublisherWarning += this.OnPublisherWarning;
            monitor.PublisherException += this.OnPublisherException;
            monitor.PublisherClosed += this.OnPublisherClosed;
            monitor.PublisherClosing += this.OnPublisherClosing;
            monitor.PublisherInitializing += this.OnPublisherInitializing;
            monitor.PublisherInitialized += this.OnPublisherInitialized;
            monitor.PublisherSending += this.OnPublisherSending;
            monitor.PublisherSent += this.OnPublisherSent;
            monitor.SubscriberWarning += this.OnSubscriberWarning;
            monitor.SubscriberException += this.OnSubscriberException;
            monitor.SubscriberClosed += this.OnSubscriberClosed;
            monitor.SubscriberClosing += this.OnSubscriberClosing;
            monitor.SubscriberInitialized += this.OnSubscriberInitialized;
            monitor.SubscriberInitializing += this.OnSubscriberInitializing;
            monitor.SubscriberReceived += this.OnSubscriberReceived;
            monitor.SubscriberReceiving += this.OnSubscriberReceiving;
            monitor.WorkerRunning += this.OnWorkerRunning;
            monitor.WorkerStarted += this.OnWorkerStarted;
            monitor.WorkerStarting += this.OnWorkerStarting;
            monitor.WorkerStopped += this.OnWorkerStopped;
            monitor.WorkerStopping += this.OnWorkerStopping;
            monitor.WorkerCompleted += this.OnWorkerCompleted;
            monitor.WorkerException += this.OnWorkerException;
            monitor.WorkerWarning += this.OnWorkerWarning;
        }