public void DesigntimeInitialize() { // _messenger?.Dispose(); if (null == _platformLogSession) { this._platformLogSession = new PlatformLogSession(); } }
public void RuntimeInitialize() { if (null == _platformLogSession) { this._platformLogSession = new PlatformLogSession(); } // MessengerOption option = new MessengerOption(Constants.LogQueueName, typeof(LogMessage)); // _messenger = Messenger.GetMessenger(option); }
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(); }
void IController.DesigntimeInitialize() { _platformLogSession = new PlatformLogSession(CommonConst.PlatformLogSession); }