示例#1
0
        public static IHttpReportsBuilder UseMySqlStorage(this IHttpReportsBuilder builder, Action <MySqlStorageOptions> options)
        {
            builder.Services.AddOptions();
            builder.Services.Configure <MySqlStorageOptions>(options);

            return(builder.AddMySqlStorageService());
        }
示例#2
0
 public static IHttpReportsBuilder UseMySqlStorage(this IHttpReportsBuilder builder)
 {
     builder.Services.AddOptions();
     builder.Services.Configure <MySqlStorageOptions>(builder.Configuration.GetSection("Storage"));
     return(builder.AddMySqlStorageService());
 }