public MainPageViewModel(ILoggingSystem <MainPageViewModel> logger, IEventAggregator eventAggregator) { OpenTestCommand = new RelayCommand(o => eventAggregator.Invoke(new TestEvent() { Message = $"Input: {Message}" })); OpenNewPageCommand = new RelayCommand(o => eventAggregator.Invoke(new OpenNewPageEvent() { ViewModelType = typeof(NewPageViewModel) })); }
/// <summary> /// Initializes a new instance of the <see cref="Logger"/> class. /// </summary> /// <param name="moduleName">Name of the module.</param> /// <param name="loggingSystems">The logging systems.</param> public Logger(string moduleName, ILoggingSystem loggingSystem) : this(loggingSystem) { this.ModuleName = moduleName; }
/// <summary> /// Initializes a new instance of the <see cref="BMCLogger"/> class. /// </summary> /// <param name="moduleName">Name of the module.</param> /// <param name="loggingSystems">The logging systems.</param> public BMCLogger(string moduleName, ILoggingSystem loggingSystem) : base(moduleName, loggingSystem) { }
/// <summary> /// Initializes a new instance of the <see cref="Logger"/> class. /// </summary> /// <param name="loggingSystem">The logging system.</param> public Logger(ILoggingSystem loggingSystem) : this() { this.LoggingSystems.Add(loggingSystem); }
/// <summary> /// Initializes a new instance of the <see cref="Logger"/> class. /// </summary> /// <param name="moduleName">Name of the module.</param> /// <param name="loggingSystems">The logging systems.</param> public BMCCommonLogger(string moduleName, ILoggingSystem loggingSystem) : this(loggingSystem) { this.ModuleName = moduleName; }
/// <summary> /// Initializes a new instance of the <see cref="BMCLogger"/> class. /// </summary> /// <param name="loggingSystem">The logging system.</param> public BMCLogger(ILoggingSystem loggingSystem) : base(loggingSystem) { }
public static void AddLoggingSystem(ILoggingSystem loggingSystem) { SharedData.ActiveLogger.LoggingSystems.Add(loggingSystem); }
/// <summary> /// Initializes a new instance of the <see cref="Logger"/> class. /// </summary> /// <param name="loggingSystem">The logging system.</param> public BMCCommonLogger(ILoggingSystem loggingSystem) : this() { this.LoggingSystems.Add(loggingSystem); }