StackExchangeRedisDependencyInjectionExtensions.AddStackExchangeRedis 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddStackExchangeRedis(ISignalRServerBuilder) |
使用共享 Redis 服务器将横向扩展添加到 ISignalRServerBuilder。 |
AddStackExchangeRedis(ISignalRServerBuilder, Action<RedisOptions>) |
使用共享 Redis 服务器将横向扩展添加到 ISignalRServerBuilder。 |
AddStackExchangeRedis(ISignalRServerBuilder, String) |
使用共享 Redis 服务器将横向扩展添加到 ISignalRServerBuilder。 |
AddStackExchangeRedis(ISignalRServerBuilder, String, Action<RedisOptions>) |
使用共享 Redis 服务器将横向扩展添加到 ISignalRServerBuilder。 |
AddStackExchangeRedis(ISignalRServerBuilder)
使用共享 Redis 服务器将横向扩展添加到 ISignalRServerBuilder。
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
参数
- signalrBuilder
- ISignalRServerBuilder
返回
用于链接的相同 ISignalRServerBuilder 实例。
适用于
AddStackExchangeRedis(ISignalRServerBuilder, Action<RedisOptions>)
使用共享 Redis 服务器将横向扩展添加到 ISignalRServerBuilder。
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
参数
- signalrBuilder
- ISignalRServerBuilder
- configure
- Action<RedisOptions>
用于配置 Redis 选项的回调。
返回
用于链接的相同 ISignalRServerBuilder 实例。
适用于
AddStackExchangeRedis(ISignalRServerBuilder, String)
使用共享 Redis 服务器将横向扩展添加到 ISignalRServerBuilder。
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
参数
- signalrBuilder
- ISignalRServerBuilder
- redisConnectionString
- String
用于连接到 Redis 服务器的连接字符串。
返回
用于链接的相同 ISignalRServerBuilder 实例。
适用于
AddStackExchangeRedis(ISignalRServerBuilder, String, Action<RedisOptions>)
使用共享 Redis 服务器将横向扩展添加到 ISignalRServerBuilder。
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
参数
- signalrBuilder
- ISignalRServerBuilder
- redisConnectionString
- String
用于连接到 Redis 服务器的连接字符串。
- configure
- Action<RedisOptions>
用于配置 Redis 选项的回调。
返回
用于链接的相同 ISignalRServerBuilder 实例。