예제 #1
0
        public void DesigntimeInitialize()
        {
//            _messenger?.Dispose();
            if (null == _platformLogSession)
            {
                this._platformLogSession = new PlatformLogSession();
            }
        }
예제 #2
0
        public void RuntimeInitialize()
        {
            if (null == _platformLogSession)
            {
                this._platformLogSession = new PlatformLogSession();
            }
//            MessengerOption option = new MessengerOption(Constants.LogQueueName, typeof(LogMessage));
//            _messenger = Messenger.GetMessenger(option);
        }
예제 #3
0
        void IController.RuntimeInitialize()
        {
            this._platformLogSession = new PlatformLogSession(-1);
            MessengerOption option = new MessengerOption(Constants.LogQueueName, typeof(LogMessage));

            _messenger = Messenger.GetMessenger(option);
            InitializeRuntimeSession();
            _messenger.RegisterConsumer(_runtimeLogSessions.Values.ToArray());
            foreach (LocalLogSession logSession in _runtimeLogSessions.Values)
            {
                logSession.Dispose();
            }
            _runtimeLogSessions.Clear();
        }
예제 #4
0
 void IController.DesigntimeInitialize()
 {
     _platformLogSession = new PlatformLogSession(CommonConst.PlatformLogSession);
 }