RedisDependencyInjectionExtensions.AddRedis 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
AddRedis(ISignalRServerBuilder) |
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server. |
AddRedis(ISignalRServerBuilder, Action<RedisOptions>) |
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server. |
AddRedis(ISignalRServerBuilder, String) |
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server. |
AddRedis(ISignalRServerBuilder, String, Action<RedisOptions>) |
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server. |
AddRedis(ISignalRServerBuilder)
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server.
public static Microsoft.AspNetCore.SignalR.ISignalRServerBuilder AddRedis (this Microsoft.AspNetCore.SignalR.ISignalRServerBuilder signalrBuilder);
static member AddRedis : Microsoft.AspNetCore.SignalR.ISignalRServerBuilder -> Microsoft.AspNetCore.SignalR.ISignalRServerBuilder
<Extension()>
Public Function AddRedis (signalrBuilder As ISignalRServerBuilder) As ISignalRServerBuilder
Parameters
- signalrBuilder
- ISignalRServerBuilder
Returns
The same instance of the ISignalRServerBuilder for chaining.
Applies to
AddRedis(ISignalRServerBuilder, Action<RedisOptions>)
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server.
public static Microsoft.AspNetCore.SignalR.ISignalRServerBuilder AddRedis (this Microsoft.AspNetCore.SignalR.ISignalRServerBuilder signalrBuilder, Action<Microsoft.AspNetCore.SignalR.Redis.RedisOptions> configure);
static member AddRedis : Microsoft.AspNetCore.SignalR.ISignalRServerBuilder * Action<Microsoft.AspNetCore.SignalR.Redis.RedisOptions> -> Microsoft.AspNetCore.SignalR.ISignalRServerBuilder
<Extension()>
Public Function AddRedis (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
AddRedis(ISignalRServerBuilder, String)
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server.
public static Microsoft.AspNetCore.SignalR.ISignalRServerBuilder AddRedis (this Microsoft.AspNetCore.SignalR.ISignalRServerBuilder signalrBuilder, string redisConnectionString);
static member AddRedis : Microsoft.AspNetCore.SignalR.ISignalRServerBuilder * string -> Microsoft.AspNetCore.SignalR.ISignalRServerBuilder
<Extension()>
Public Function AddRedis (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
AddRedis(ISignalRServerBuilder, String, Action<RedisOptions>)
Adds scale-out to a ISignalRServerBuilder, using a shared Redis server.
public static Microsoft.AspNetCore.SignalR.ISignalRServerBuilder AddRedis (this Microsoft.AspNetCore.SignalR.ISignalRServerBuilder signalrBuilder, string redisConnectionString, Action<Microsoft.AspNetCore.SignalR.Redis.RedisOptions> configure);
static member AddRedis : Microsoft.AspNetCore.SignalR.ISignalRServerBuilder * string * Action<Microsoft.AspNetCore.SignalR.Redis.RedisOptions> -> Microsoft.AspNetCore.SignalR.ISignalRServerBuilder
<Extension()>
Public Function AddRedis (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.