/// <summary> /// Initializes a new instance of the <see cref="MetricChartPropertyToMetricChartPropertyControlViewModelConverter"/> class. /// </summary> /// <param name="analysisServicesFactory">The analysis services factory</param> /// <param name="tracer">The tracer</param> public MetricChartPropertyToMetricChartPropertyControlViewModelConverter( IInternalAnalysisServicesFactory analysisServicesFactory, ITracer tracer) { this.analysisServicesFactory = analysisServicesFactory; this.tracer = tracer; }
/// <summary> /// Initializes a new instance of the <see cref="SmartDetectorRunner"/> class /// </summary> /// <param name="smartDetectorRepository">The Smart Detector repository</param> /// <param name="smartDetectorLoader">The Smart Detector loader</param> /// <param name="analysisServicesFactory">The analysis services factory</param> /// <param name="azureResourceManagerClient">The Azure Resource Manager client</param> /// <param name="stateRepositoryFactory">The state repository factory</param> /// <param name="tracer">The tracer</param> public SmartDetectorRunner( ISmartDetectorRepository smartDetectorRepository, ISmartDetectorLoader smartDetectorLoader, IInternalAnalysisServicesFactory analysisServicesFactory, IExtendedAzureResourceManagerClient azureResourceManagerClient, IStateRepositoryFactory stateRepositoryFactory, ITracer tracer) { this.smartDetectorRepository = Diagnostics.EnsureArgumentNotNull(() => smartDetectorRepository); this.smartDetectorLoader = Diagnostics.EnsureArgumentNotNull(() => smartDetectorLoader); this.analysisServicesFactory = Diagnostics.EnsureArgumentNotNull(() => analysisServicesFactory); this.azureResourceManagerClient = Diagnostics.EnsureArgumentNotNull(() => azureResourceManagerClient); this.stateRepositoryFactory = Diagnostics.EnsureArgumentNotNull(() => stateRepositoryFactory); this.tracer = tracer; }
/// <summary> /// Initializes a new instance of the <see cref="SmartDetectorRunner"/> class. /// </summary> /// <param name="smartDetector">The Smart Detector.</param> /// <param name="analysisServicesFactory">The analysis services factory.</param> /// <param name="smartDetectorManifest">The Smart Detector manifest.</param> /// <param name="stateRepositoryFactory">The state repository factory</param> /// <param name="azureResourceManagerClient">The Azure Resource Manager client</param> /// <param name="logArchive">The log archive.</param> public SmartDetectorRunner( ISmartDetector smartDetector, IInternalAnalysisServicesFactory analysisServicesFactory, SmartDetectorManifest smartDetectorManifest, IStateRepositoryFactory stateRepositoryFactory, IExtendedAzureResourceManagerClient azureResourceManagerClient, IPageableLogArchive logArchive) { this.smartDetector = smartDetector; this.analysisServicesFactory = analysisServicesFactory; this.smartDetectorManifest = smartDetectorManifest; this.logArchive = logArchive; this.IsSmartDetectorRunning = false; this.Alerts = new ObservableCollection <EmulationAlert>(); this.stateRepositoryFactory = stateRepositoryFactory; this.azureResourceManagerClient = azureResourceManagerClient; }
/// <summary> /// Initializes a new instance of the <see cref="SmartDetectorRunner"/> class. /// </summary> /// <param name="smartDetector">The Smart Detector.</param> /// <param name="analysisServicesFactory">The analysis services factory.</param> /// <param name="queryRunInfoProvider">The query run information provider.</param> /// <param name="smartDetectorManifes">The Smart Detector manifest.</param> /// <param name="stateRepositoryFactory">The state repository factory</param> /// <param name="azureResourceManagerClient">The Azure Resource Manager client</param> /// <param name="tracer">The tracer.</param> public SmartDetectorRunner( ISmartDetector smartDetector, IInternalAnalysisServicesFactory analysisServicesFactory, IQueryRunInfoProvider queryRunInfoProvider, SmartDetectorManifest smartDetectorManifes, IStateRepositoryFactory stateRepositoryFactory, IExtendedAzureResourceManagerClient azureResourceManagerClient, ITracer tracer) { this.smartDetector = smartDetector; this.analysisServicesFactory = analysisServicesFactory; this.queryRunInfoProvider = queryRunInfoProvider; this.smartDetectorManifest = smartDetectorManifes; this.Tracer = tracer; this.IsSmartDetectorRunning = false; this.Alerts = new ObservableCollection <EmulationAlert>(); this.stateRepositoryFactory = stateRepositoryFactory; this.azureResourceManagerClient = azureResourceManagerClient; }