Beispiel #1
0
 /// <summary>
 /// Creates node with specified configuration data.
 /// </summary>
 /// <param name="data">The specified configuration data.</param>
 public SinkCollectionNode(SinkDataCollection data) : base()
 {
     if (data == null)
     {
         throw new ArgumentNullException("data");
     }
     this.sinkDataCollection = data;
 }
Beispiel #2
0
        private void GetSinks()
        {
            SinkCollectionNode sinkCollectionNode = Hierarchy.FindNodeByType(this, typeof(SinkCollectionNode)) as SinkCollectionNode;

            if (sinkCollectionNode == null)
            {
                return;
            }

            SinkDataCollection sinks = sinkCollectionNode.SinkDataCollection;

            if (Object.ReferenceEquals(distributorSettings.SinkDataCollection, sinks))
            {
                return;
            }

            distributorSettings.SinkDataCollection.Clear();
            foreach (SinkData sink in sinks)
            {
                distributorSettings.SinkDataCollection[sink.Name] = sink;
            }
        }
Beispiel #3
0
 public void Setup()
 {
     sinkDataCollection = new SinkDataCollection();
 }
Beispiel #4
0
 public void Setup()
 {
     sinkDataCollection = new SinkDataCollection();
 }