/// <summary> /// Instanciates a VMLogConfig, without populating it /// you can populate it by calling its Initialize() method /// </summary> /// <param name="ctx"></param> public VMLogConfig( VMIContextViewModel ctx, ILogService logService ) : base(ctx, null) { _vmiContext = ctx; _services = new ObservableCollection<VMLogServiceConfig>(); _servicesEx = new CKReadOnlyCollectionTypeConverter<ILogServiceConfig, VMLogServiceConfig>( _services, ( c ) => { return (ILogServiceConfig)c; } ); _logService = logService; LogEntriesContainer = new VMLogOutputContainer(); }
/// <summary> /// Instantiates an empty VMLogServiceConfig /// </summary> /// <param name="name"></param> /// <param name="isBound"></param> public VMLogServiceConfig( string name, bool isBound ) : base(name, isBound) { _dataPath = this.Name; _doLogDataPath = _dataPath + "-ServiceDoLog"; _methods = new ObservableCollection<VMLogMethodConfig>(); _methodsEx = new CKReadOnlyCollectionTypeConverter<ILogMethodConfig, VMLogMethodConfig>( _methods, ( m ) => { return (ILogMethodConfig)m; } ); _events = new ObservableCollection<VMLogEventConfig>(); _eventsEx = new CKReadOnlyCollectionTypeConverter<ILogEventConfig, VMLogEventConfig>( _events, ( m ) => { return (ILogEventConfig)m; } ); _properties = new ObservableCollection<VMLogPropertyConfig>(); _propertiesEx = new CKReadOnlyCollectionTypeConverter<ILogPropertyConfig, VMLogPropertyConfig>( _properties, ( m ) => { return (ILogPropertyConfig)m; } ); }