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 執行個體。