Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DataCollectionManager"/> class.
 /// </summary>
 /// <param name="datacollectionAttachmentManager">
 /// The datacollection Attachment Manager.
 /// </param>
 /// <param name="messageSink">
 /// The message Sink.
 /// </param>
 /// <remarks>
 /// The constructor is not public because the factory method should be used to get instances of this class.
 /// </remarks>
 protected DataCollectionManager(IDataCollectionAttachmentManager datacollectionAttachmentManager, IMessageSink messageSink)
 {
     this.attachmentManager             = datacollectionAttachmentManager;
     this.messageSink                   = messageSink;
     this.events                        = new TestPlatformDataCollectionEvents();
     this.dataCollectorExtensionManager = null;
     this.RunDataCollectors             = new Dictionary <Type, DataCollectorInformation>();
 }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DataCollectionManager"/> class.
        /// </summary>
        /// <param name="datacollectionAttachmentManager">
        /// The datacollection Attachment Manager.
        /// </param>
        /// <param name="messageSink">
        /// The message Sink.
        /// </param>
        /// <param name="dataCollectorLoader">
        /// The data Collector Loader.
        /// </param>
        internal DataCollectionManager(IDataCollectionAttachmentManager datacollectionAttachmentManager, IMessageSink messageSink, IDataCollectorLoader dataCollectorLoader)
        {
            this.attachmentManager   = datacollectionAttachmentManager;
            this.messageSink         = messageSink;
            this.dataCollectorLoader = dataCollectorLoader;
            this.events = new TestPlatformDataCollectionEvents();

            this.RunDataCollectors = new Dictionary <Type, DataCollectorInformation>();
        }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DataCollectorInformation"/> class.
 /// </summary>
 /// <param name="dataCollector">
 /// The data collector.
 /// </param>
 /// <param name="configurationElement">
 /// The configuration element.
 /// </param>
 /// <param name="dataCollectorConfig">
 /// The data collector config.
 /// </param>
 /// <param name="environmentContext">
 /// The environment Context.
 /// </param>
 /// <param name="attachmentManager">
 /// The attachment Manager.
 /// </param>
 /// <param name="events">
 /// The events.
 /// </param>
 /// <param name="messageSink">
 /// The message Sink.
 /// </param>
 /// <param name="settingsXml"></param>
 internal DataCollectorInformation(DataCollector dataCollector, XmlElement configurationElement, DataCollectorConfig dataCollectorConfig, DataCollectionEnvironmentContext environmentContext, IDataCollectionAttachmentManager attachmentManager, TestPlatformDataCollectionEvents events, IMessageSink messageSink, string settingsXml)
 {
     this.DataCollector        = dataCollector;
     this.ConfigurationElement = configurationElement;
     this.DataCollectorConfig  = dataCollectorConfig;
     this.Events             = events;
     this.EnvironmentContext = environmentContext;
     this.DataCollectionSink = new TestPlatformDataCollectionSink(attachmentManager, dataCollectorConfig);
     this.Logger             = new TestPlatformDataCollectionLogger(messageSink, dataCollectorConfig);
     this.SettingsXml        = settingsXml;
 }