/// <summary> /// Initialize a new instance of the <see cref="DistributorSettings"/> using the given default category and formatter. /// </summary> /// <param name="defaultCategory">The name of the default category to use.</param> /// <param name="defaultFormatter">The name of the default formatter to use.</param> public DistributorSettings(string defaultCategory, string defaultFormatter) { this.defaultCategory = defaultCategory; this.defaultFormatter = defaultFormatter; this.sinkDataCollection = new SinkDataCollection(); this.categoryDataCollection = new CategoryDataCollection(); this.formatters = new FormatterDataCollection(); this.distributorServiceData = new MsmqDistributorServiceData(); }
/// <summary> /// Creates node with defined configuration data. /// </summary> /// <param name="formatters">The defined configuration data.</param> public FormatterCollectionNode(FormatterDataCollection formatters) : base() { if (formatters == null) { throw new ArgumentNullException("formatters"); } this.formatterDataCollection = formatters; }
/// <summary> /// Initialize a new instance of the <see cref="DistributorSettings"/> using the given default category and formatter. /// </summary> /// <param name="defaultCategory">The name of the default category to use.</param> /// <param name="defaultFormatter">The name of the default formatter to use.</param> public DistributorSettings(string defaultCategory, string defaultFormatter) { this.defaultCategory = defaultCategory; this.defaultFormatter = defaultFormatter; this.sinkDataCollection = new SinkDataCollection(); this.categoryDataCollection = new CategoryDataCollection(); this.formatters = new FormatterDataCollection(); this.distributorServiceData = new MsmqDistributorServiceData(); }