예제 #1
0
 public static IHttpReportsBuilder AddHttpTransport(this IHttpReportsBuilder builder, Action <HttpTransportOptions> options)
 {
     builder.Services.AddOptions().Configure(options);
     return(builder.AddHttpTransport());
 }
예제 #2
0
 public static IHttpReportsBuilder AddHttpTransport(this IHttpReportsBuilder builder)
 {
     builder.Services.AddOptions().Configure <HttpTransportOptions>(builder.Configuration.GetSection("Transport"));
     return(builder.AddHttpTransport());
 }