public ChangeAnalysisDataProvider(OperationDataCache cache, ChangeAnalysisDataProviderConfiguration configuration, string requestId, string clientObjectId, string principalName, IKustoDataProvider kustoDataProvider, IHeaderDictionary incomingRequestHeaders) : base(cache)
 {
     dataProviderConfiguration = configuration;
     dataProviderRequestId     = requestId;
     changeAnalysisClient      = new ChangeAnalysisClient(configuration, requestId, clientObjectId, incomingRequestHeaders, principalName);
     this.kustoDataProvider    = kustoDataProvider;
 }
Esempio n. 2
0
 public SupportObserverDataProviderBase(OperationDataCache cache, SupportObserverDataProviderConfiguration configuration) : base(cache)
 {
     _configuration          = configuration;
     _httpClient             = GetObserverClient();
     _httpClient.BaseAddress = new Uri("https://wawsobserver-prod.azurewebsites.net/api/");
     _httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
 }
 public GeoMasterDataProvider(OperationDataCache cache, DataProviderContext context) : base(cache)
 {
     _geoMasterHostName = string.IsNullOrWhiteSpace(context.GeomasterHostName) ? context.Configuration.GeoMasterConfiguration.GeoEndpointAddress : context.GeomasterHostName;
     _configuration     = context.Configuration.GeoMasterConfiguration;
     _geoMasterClient   = InitClient();
     GeoMasterName      = string.IsNullOrWhiteSpace(context.GeomasterName) ? ParseGeoMasterName(_geoMasterHostName) : context.GeomasterName;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AscDataProvider"/> class.
 /// </summary>
 /// <param name="cache">Operation Data Cache instance.</param>
 /// <param name="configuration">Configuration for calling into Azure Support Center.</param>
 /// <param name="requestId">AppLens request id.</param>
 public AscDataProvider(OperationDataCache cache, AscDataProviderConfiguration configuration, string requestId)
     : base(cache)
 {
     dataProviderConfiguration = configuration;
     dataProviderRequestId     = requestId;
     ascClient = new AscClient(configuration, dataProviderRequestId);
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AscDataProvider"/> class.
 /// </summary>
 /// <param name="cache">Operation Data Cache instance.</param>
 /// <param name="configuration">Configuration for calling into Azure Support Center.</param>
 /// <param name="requestId">AppLens request id.</param>
 public AscDataProvider(OperationDataCache cache, AscDataProviderConfiguration configuration, string requestId, DataProviderContext context)
     : base(cache)
 {
     dataProviderConfiguration = configuration;
     dataProviderRequestId     = requestId;
     ascClient             = new AscClient(configuration, dataProviderRequestId, context.receivedHeaders);
     CurrentRequestContext = context;
 }
 public AppInsightsDataProvider(OperationDataCache cache, AppInsightsDataProviderConfiguration configuration) : base(cache)
 {
     _configuration     = configuration;
     _appInsightsClient = new AppInsightsClient(_configuration);
     Metadata           = new DataProviderMetadata
     {
         ProviderName = "AppInsights"
     };
 }
 public KustoDataProvider(OperationDataCache cache, KustoDataProviderConfiguration configuration) : base(cache)
 {
     _configuration = configuration;
     _kustoClient   = KustoClientFactory.GetKustoClient(configuration);
     Metadata       = new DataProviderMetadata
     {
         ProviderName = "Kusto"
     };
 }
 public SupportObserverDataProviderBase(OperationDataCache cache, SupportObserverDataProviderConfiguration configuration, DataProviderContext dataProviderContext) : base(cache)
 {
     Configuration       = configuration;
     RequestId           = dataProviderContext.RequestId;
     DataProviderContext = dataProviderContext;
     Logger                  = DiagnosticsETWProvider.Instance;
     _httpClient             = GetObserverClient();
     _httpClient.BaseAddress = new Uri($"{configuration.Endpoint}/api/");
     _httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
 }
 public KustoDataProvider(OperationDataCache cache, KustoDataProviderConfiguration configuration, string requestId) : base(cache)
 {
     _configuration = configuration;
     _kustoClient   = KustoClientFactory.GetKustoClient(configuration, requestId);
     _requestId     = requestId;
     Metadata       = new DataProviderMetadata
     {
         ProviderName = "Kusto"
     };
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MdmDataProvider"/> class.
 /// </summary>
 /// <param name="cache">Operation cache.</param>
 /// <param name="configuration">Data provider configuration.</param>
 /// <param name="requestId">Request id.</param>
 public MdmDataProvider(OperationDataCache cache, IMdmDataProviderConfiguration configuration, string requestId, IHeaderDictionary headers = null)
     : base(cache)
 {
     _configuration = configuration;
     _mdmClient     = MdmClientFactory.GetMdmClient(configuration, requestId);
     Metadata       = new DataProviderMetadata
     {
         ProviderName = "MDM"
     };
 }
Esempio n. 11
0
 public static ISupportObserverDataProvider GetDataProvider(OperationDataCache cache, DataSourcesConfiguration configuration)
 {
     if (configuration.SupportObserverConfiguration.IsMockConfigured)
     {
         return(new MockSupportObserverDataProvider(cache, configuration.SupportObserverConfiguration));
     }
     else
     {
         return(new SupportObserverDataProvider(cache, configuration.SupportObserverConfiguration));
     }
 }
 public SupportObserverDataProvider(OperationDataCache cache, SupportObserverDataProviderConfiguration configuration) : base(cache, configuration)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MdmDataProvider"/> class.
 /// </summary>
 /// <param name="cache">Operation cache.</param>
 /// <param name="configuration">Data provider configuration.</param>
 /// <param name="requestId">Request id.</param>
 public MdmDataProvider(OperationDataCache cache, IMdmDataProviderConfiguration configuration, string requestId)
     : base(cache)
 {
     _configuration = configuration;
     _mdmClient     = MdmClientFactory.GetMdmClient(configuration, requestId);
 }
 public MockSupportObserverDataProvider(OperationDataCache cache, SupportObserverDataProviderConfiguration configuration, DataProviderContext dataProviderContext) : base(cache, configuration, dataProviderContext)
 {
 }
Esempio n. 15
0
 public DiagnosticDataProvider(OperationDataCache cache)
 {
     _cache = cache;
 }
 public GeoMasterDataProvider(OperationDataCache cache, GeoMasterDataProviderConfiguration configuration) : base(cache)
 {
     _configuration   = configuration;
     _geoMasterClient = InitClient();
 }
Esempio n. 17
0
 public AppInsightsDataProvider(OperationDataCache cache, AppInsightsDataProviderConfiguration configuration) : base(cache)
 {
     _configuration     = configuration;
     _appInsightsClient = new AppInsightsClient(_configuration);
 }