Ejemplo n.º 1
0
        public static IServiceCollection AddBigQuerySchemaHelper(this IServiceCollection services, IConfigurationSection configurationSection, string optionsName)
        {
            var helperOptions = new BigQuerySchemaHelperOptions();

            configurationSection.Bind(helperOptions);
            return(services.AddBigQuerySchemaHelper(helperOptions, optionsName));
        }
Ejemplo n.º 2
0
 public static IServiceCollection AddBigQuerySchemaHelper(this IServiceCollection services, BigQuerySchemaHelperOptions helperOptions, string optionsName)
 {
     services.Configure <BigQuerySchemaHelperOptions>(optionsName, options =>
     {
         options.ProjectId   = helperOptions.ProjectId;
         options.DatasetName = helperOptions.DatasetName;
         options.TeamId      = helperOptions.TeamId;
         options.AppId       = helperOptions.AppId;
     });
     services.AddSingleton <IBigQueryClientFactory, BigQueryClientFactory>();
     services.AddScoped <IBigQuerySchemaHelper, BigQuerySchemaHelper>();
     return(services);
 }
Ejemplo n.º 3
0
 public static IServiceCollection AddBigQuerySchemaHelper(this IServiceCollection services, BigQuerySchemaHelperOptions helperOptions)
 {
     return(services.AddBigQuerySchemaHelper(helperOptions, ""));
 }