/// <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>();
 }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TestPlatformDataCollectionSink"/> class.
        /// Creates a data collector sink for data transfer.
        /// </summary>
        /// <param name="attachmentManager">
        /// The attachment Manager.
        /// </param>
        /// <param name="dataCollectorConfig">
        /// Data collector info.
        /// </param>
        internal TestPlatformDataCollectionSink(IDataCollectionAttachmentManager attachmentManager, DataCollectorConfig dataCollectorConfig)
        {
            ValidateArg.NotNull(attachmentManager, nameof(attachmentManager));
            ValidateArg.NotNull(dataCollectorConfig, nameof(dataCollectorConfig));

            this.DataCollectorConfig = dataCollectorConfig;
            this.AttachmentManager   = attachmentManager;
        }
Exemple #3
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>();
        }
Exemple #4
0
 internal TestableDataCollectionManager(IDataCollectionAttachmentManager datacollectionAttachmentManager, IMessageSink messageSink) : base(datacollectionAttachmentManager, messageSink)
 {
 }
Exemple #5
0
 public TestableDataCollectionManager(IDataCollectionAttachmentManager datacollectionAttachmentManager, IMessageSink messageSink, DataCollector dataCollector) : this(datacollectionAttachmentManager, messageSink)
 {
     this.dataCollector = dataCollector;
 }
Exemple #6
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;
 }
Exemple #7
0
 internal TestableDataCollectionManager(IDataCollectionAttachmentManager datacollectionAttachmentManager, IMessageSink messageSink, IDataCollectionTelemetryManager dataCollectionTelemetryManager) : base(datacollectionAttachmentManager, messageSink, dataCollectionTelemetryManager)
 {
 }
Exemple #8
0
 public TestableDataCollectionManager(IDataCollectionAttachmentManager datacollectionAttachmentManager, IMessageSink messageSink, DataCollector dataCollector, DataCollector ccDataCollector, IDataCollectionTelemetryManager dataCollectionTelemetryManager) : this(datacollectionAttachmentManager, messageSink, dataCollectionTelemetryManager)
 {
     this.dataCollector   = dataCollector;
     this.ccDataCollector = ccDataCollector;
 }