RedisDependencyInjectionExtensions.AddRedis 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddRedis(ISignalRServerBuilder) |
使用共用 Redis 伺服器將向外延展新增至 ISignalRServerBuilder 。 |
AddRedis(ISignalRServerBuilder, Action<RedisOptions>) |
使用共用 Redis 伺服器將向外延展新增至 ISignalRServerBuilder 。 |
AddRedis(ISignalRServerBuilder, String) |
使用共用 Redis 伺服器將向外延展新增至 ISignalRServerBuilder 。 |
AddRedis(ISignalRServerBuilder, String, Action<RedisOptions>) |
使用共用 Redis 伺服器將向外延展新增至 ISignalRServerBuilder 。 |
AddRedis(ISignalRServerBuilder)
使用共用 Redis 伺服器將向外延展新增至 ISignalRServerBuilder 。
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
參數
- signalrBuilder
- ISignalRServerBuilder
傳回
用於鏈結的相同 ISignalRServerBuilder 執行個體。
適用於
AddRedis(ISignalRServerBuilder, Action<RedisOptions>)
使用共用 Redis 伺服器將向外延展新增至 ISignalRServerBuilder 。
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
參數
- signalrBuilder
- ISignalRServerBuilder
- configure
- Action<RedisOptions>
要設定 Redis 選項的回呼。
傳回
用於鏈結的相同 ISignalRServerBuilder 執行個體。
適用於
AddRedis(ISignalRServerBuilder, String)
使用共用 Redis 伺服器將向外延展新增至 ISignalRServerBuilder 。
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
參數
- signalrBuilder
- ISignalRServerBuilder
- redisConnectionString
- String
用來連線到 Redis 伺服器的連接字串。
傳回
用於鏈結的相同 ISignalRServerBuilder 執行個體。
適用於
AddRedis(ISignalRServerBuilder, String, Action<RedisOptions>)
使用共用 Redis 伺服器將向外延展新增至 ISignalRServerBuilder 。
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
參數
- signalrBuilder
- ISignalRServerBuilder
- redisConnectionString
- String
用來連線到 Redis 伺服器的連接字串。
- configure
- Action<RedisOptions>
要設定 Redis 選項的回呼。
傳回
用於鏈結的相同 ISignalRServerBuilder 執行個體。