public static SignalRServicesBuilder AddSqlServer(this SignalRServicesBuilder builder, IConfiguration configuration, Action <SqlScaleoutOptions> configureOptions = null) { builder.ServiceCollection.Add(ServiceDescriptor.Singleton <IMessageBus, SqlMessageBus>()); if (configuration != null) { builder.ServiceCollection.Configure <SqlScaleoutOptions>(configuration); } if (configureOptions != null) { builder.ServiceCollection.Configure(configureOptions); } return(builder); }
public static SignalRServicesBuilder AddSqlServer(this SignalRServicesBuilder builder, Action <SqlScaleoutOptions> configureOptions = null) { return(builder.AddSqlServer(configuration: null, configureOptions: configureOptions)); }