public DataProviders(DataProviderContext context)
 {
     Kusto       = new DataProviderLogDecorator(context, new KustoDataProvider(_cache, context.Configuration.KustoConfiguration));
     Observer    = new DataProviderLogDecorator(context, SupportObserverDataProviderFactory.GetDataProvider(_cache, context.Configuration));
     GeoMaster   = new DataProviderLogDecorator(context, new GeoMasterDataProvider(_cache, context.Configuration.GeoMasterConfiguration));
     AppInsights = new DataProviderLogDecorator(context, new AppInsightsDataProvider(_cache, context.Configuration.AppInsightsConfiguration));
 }
 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;
 }
        public DataProviders(DataProviderContext context)
        {
            Kusto          = new KustoLogDecorator(context, new KustoDataProvider(_cache, context.Configuration.KustoConfiguration, context.RequestId, context.KustoHeartBeatService));
            Observer       = new ObserverLogDecorator(context, SupportObserverDataProviderFactory.GetDataProvider(_cache, context.Configuration, context));
            GeoMaster      = new GeoMasterLogDecorator(context, new GeoMasterDataProvider(_cache, context));
            AppInsights    = new AppInsightsLogDecorator(context, new AppInsightsDataProvider(_cache, context.Configuration.AppInsightsConfiguration));
            ChangeAnalysis = new ChangeAnalysisLogDecorator(context, new ChangeAnalysisDataProvider(_cache, context.Configuration.ChangeAnalysisDataProviderConfiguration, context.RequestId, context.clientObjectId, context.clientPrincipalName, Kusto, context.receivedHeaders));
            Asc            = new AscLogDecorator(context, new AscDataProvider(_cache, context.Configuration.AscDataProviderConfiguration, context.RequestId));
            Mdm            = (MdmDataSource ds) =>
            {
                switch (ds)
                {
                case MdmDataSource.Antares:
                    return(new MdmLogDecorator(context, new MdmDataProvider(_cache, context.Configuration.AntaresMdmConfiguration, context.RequestId)));

                case MdmDataSource.Networking:
                    return(new MdmLogDecorator(context, new MdmDataProvider(_cache, context.Configuration.NetworkingMdmConfiguration, context.RequestId)));

                default:
                    throw new NotSupportedException($"{ds} is not supported.");
                }
            };
        }
 public KustoLogDecorator(DataProviderContext context, IKustoDataProvider dataProvider) : base(context, dataProvider.GetMetadata())
 {
     DataProvider = dataProvider;
 }
Exemplo n.º 5
0
 public DataProviderLogDecorator(IKustoDataProvider dataProvider)
 {
     _kustoDataProvider       = dataProvider;
     _currentMetadataProvider = dataProvider.GetMetadata();
 }
Exemplo n.º 6
0
 public DataProviders(DataSourcesConfiguration configuration)
 {
     Kusto     = new DataProviderLogDecorator(new KustoDataProvider(_cache, configuration.KustoConfiguration));
     Observer  = new DataProviderLogDecorator(SupportObserverDataProviderFactory.GetDataProvider(_cache, configuration));
     GeoMaster = new DataProviderLogDecorator(new GeoMasterDataProvider(_cache, configuration.GeoMasterConfiguration));
 }
Exemplo n.º 7
0
 public DataProviderLogDecorator(DataProviderContext context, IKustoDataProvider dataProvider) : this(context, dataProvider.GetMetadata())
 {
     _kustoDataProvider = dataProvider;
 }