/// <summary>
        /// Initializes a new instance of the <see cref="DataProviders" /> class.
        /// </summary>
        /// <param name="context">Data provider context</param>
        public DataProviders(DataProviderContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            Kusto       = new DataProviderLogDecorator(context, new KustoDataProvider(_cache, context.Configuration.KustoConfiguration, context.RequestId));
            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));
            Mdm         = new DataProviderLogDecorator(context, new MdmDataProvider(_cache, context.Configuration.MdmConfiguration, context.RequestId));
        }
Exemple #2
0
 public MdmLogDecorator(DataProviderContext context, IMdmDataProvider dataProvider) : base(context, dataProvider.GetMetadata())
 {
     DataProvider = dataProvider;
 }
 public DataProviderLogDecorator(DataProviderContext context, IMdmDataProvider dataProvider) : this(context, dataProvider.GetMetadata())
 {
     _mdmDataProvider = dataProvider;
 }