public static IJT1078GatewayBuilder AddJT1078Gateway(this IServiceCollection serviceDescriptors, Action <JT1078Configuration> jt1078Options) { IJT1078Builder builder = new JT1078BuilderDefault(serviceDescriptors); builder.Services.Configure(jt1078Options); IJT1078GatewayBuilder jT1078GatewayBuilderDefault = new JT1078GatewayBuilderDefault(builder); jT1078GatewayBuilderDefault.AddJT1078Core(); return(jT1078GatewayBuilderDefault); }
public static IJT1078GatewayBuilder AddJT1078Gateway(this IServiceCollection serviceDescriptors, IConfiguration configuration) { IJT1078Builder builder = new JT1078BuilderDefault(serviceDescriptors); builder.Services.Configure <JT1078Configuration>(configuration.GetSection("JT1078Configuration")); IJT1078GatewayBuilder jT1078GatewayBuilderDefault = new JT1078GatewayBuilderDefault(builder); jT1078GatewayBuilderDefault.AddJT1078Core(); return(jT1078GatewayBuilderDefault); }