/// <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 specified configuration data. /// </summary> public MsmqDistributorServiceNode(MsmqDistributorServiceData msmqDistributorServiceData) : base() { if (msmqDistributorServiceData == null) { throw new ArgumentNullException("msmqDistributorServiceData"); } this.msmqDistributorServiceData = msmqDistributorServiceData; }
/// <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(); }