StackExchangeRedisDependencyInjectionExtensions.AddStackExchangeRedis Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddStackExchangeRedis(ISignalRServerBuilder) |
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server. |
AddStackExchangeRedis(ISignalRServerBuilder, Action<RedisOptions>) |
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server. |
AddStackExchangeRedis(ISignalRServerBuilder, String) |
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server. |
AddStackExchangeRedis(ISignalRServerBuilder, String, Action<RedisOptions>) |
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server. |
AddStackExchangeRedis(ISignalRServerBuilder)
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server.
public static Microsoft.AspNetCore.SignalR.ISignalRServerBuilder AddStackExchangeRedis (this Microsoft.AspNetCore.SignalR.ISignalRServerBuilder signalrBuilder);
static member AddStackExchangeRedis : Microsoft.AspNetCore.SignalR.ISignalRServerBuilder -> Microsoft.AspNetCore.SignalR.ISignalRServerBuilder
<Extension()>
Public Function AddStackExchangeRedis (signalrBuilder As ISignalRServerBuilder) As ISignalRServerBuilder
Parameters
- signalrBuilder
- ISignalRServerBuilder
Returns
The same instance of the ISignalRServerBuilder for chaining.
Applies to
AddStackExchangeRedis(ISignalRServerBuilder, Action<RedisOptions>)
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server.
public static Microsoft.AspNetCore.SignalR.ISignalRServerBuilder AddStackExchangeRedis (this Microsoft.AspNetCore.SignalR.ISignalRServerBuilder signalrBuilder, Action<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisOptions> configure);
static member AddStackExchangeRedis : Microsoft.AspNetCore.SignalR.ISignalRServerBuilder * Action<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisOptions> -> Microsoft.AspNetCore.SignalR.ISignalRServerBuilder
<Extension()>
Public Function AddStackExchangeRedis (signalrBuilder As ISignalRServerBuilder, configure As Action(Of RedisOptions)) As ISignalRServerBuilder
Parameters
- signalrBuilder
- ISignalRServerBuilder
- configure
- Action<RedisOptions>
A callback to configure the Redis options.
Returns
The same instance of the ISignalRServerBuilder for chaining.
Applies to
AddStackExchangeRedis(ISignalRServerBuilder, String)
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server.
public static Microsoft.AspNetCore.SignalR.ISignalRServerBuilder AddStackExchangeRedis (this Microsoft.AspNetCore.SignalR.ISignalRServerBuilder signalrBuilder, string redisConnectionString);
static member AddStackExchangeRedis : Microsoft.AspNetCore.SignalR.ISignalRServerBuilder * string -> Microsoft.AspNetCore.SignalR.ISignalRServerBuilder
<Extension()>
Public Function AddStackExchangeRedis (signalrBuilder As ISignalRServerBuilder, redisConnectionString As String) As ISignalRServerBuilder
Parameters
- signalrBuilder
- ISignalRServerBuilder
- redisConnectionString
- String
The connection string used to connect to the Redis server.
Returns
The same instance of the ISignalRServerBuilder for chaining.
Applies to
AddStackExchangeRedis(ISignalRServerBuilder, String, Action<RedisOptions>)
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server.
public static Microsoft.AspNetCore.SignalR.ISignalRServerBuilder AddStackExchangeRedis (this Microsoft.AspNetCore.SignalR.ISignalRServerBuilder signalrBuilder, string redisConnectionString, Action<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisOptions> configure);
static member AddStackExchangeRedis : Microsoft.AspNetCore.SignalR.ISignalRServerBuilder * string * Action<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisOptions> -> Microsoft.AspNetCore.SignalR.ISignalRServerBuilder
<Extension()>
Public Function AddStackExchangeRedis (signalrBuilder As ISignalRServerBuilder, redisConnectionString As String, configure As Action(Of RedisOptions)) As ISignalRServerBuilder
Parameters
- signalrBuilder
- ISignalRServerBuilder
- redisConnectionString
- String
The connection string used to connect to the Redis server.
- configure
- Action<RedisOptions>
A callback to configure the Redis options.
Returns
The same instance of the ISignalRServerBuilder for chaining.