Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SchemaRetriever"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="kustoDataAccess">The Kusto DAL that will be used to actually fetch the schema.</param>
 /// <param name="indexName">The index (table name) that its schema we need.</param>
 public SchemaRetriever(ILogger <SchemaRetriever> logger, IKustoDataAccess kustoDataAccess, string indexName)
 {
     Logger               = logger;
     IndexName            = indexName;
     this.kustoDataAccess = kustoDataAccess;
     schema               = new Lazy <Task <IDictionary> >(async() => { return(await MakeDictionary()); });
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IndexListController"/> class.
 /// </summary>
 /// <param name="kustoDataAcess">An instance of <see cref="IKustoDataAccess"/>.</param>
 /// <param name="logger">An instance of <see cref="ILogger"/>.</param>
 public IndexListController(IKustoDataAccess kustoDataAcess, ILogger <IndexListController> logger)
 {
     Logger          = logger;
     KustoDataAccess = kustoDataAcess;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FieldCapabilityController"/> class.
 /// </summary>
 /// <param name="kustoDataAccess">An instance of <see cref="IKustoDataAccess"/>.</param>
 /// <param name="logger">An instance of <see cref="ILogger"/>.</param>
 public FieldCapabilityController(IKustoDataAccess kustoDataAccess, ILogger <FieldCapabilityController> logger)
 {
     Logger          = logger;
     KustoDataAccess = kustoDataAccess;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SchemaRetrieverFactory"/> class.
 /// </summary>
 /// <param name="logger">The logger to be used.</param>
 /// <param name="kustoDataAccess">The DAL that will be used to fetch the schema.</param>
 public SchemaRetrieverFactory(ILogger <SchemaRetriever> logger, IKustoDataAccess kustoDataAccess)
 {
     Logger = logger;
     this.kustoDataAccess = kustoDataAccess;
 }