共用方式為


RedisDependencyInjectionExtensions.AddRedis 方法

定義

多載

AddRedis(ISignalRServerBuilder)

使用共用 Redis 伺服器將向外延展新增至 ISignalRServerBuilder

AddRedis(ISignalRServerBuilder, Action<RedisOptions>)

使用共用 Redis 伺服器將向外延展新增至 ISignalRServerBuilder

AddRedis(ISignalRServerBuilder, String)

使用共用 Redis 伺服器將向外延展新增至 ISignalRServerBuilder

AddRedis(ISignalRServerBuilder, String, Action<RedisOptions>)

使用共用 Redis 伺服器將向外延展新增至 ISignalRServerBuilder

AddRedis(ISignalRServerBuilder)

來源:
RedisDependencyInjectionExtensions.cs
來源:
RedisDependencyInjectionExtensions.cs

使用共用 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

參數

傳回

用於鏈結的相同 ISignalRServerBuilder 執行個體。

適用於

AddRedis(ISignalRServerBuilder, Action<RedisOptions>)

來源:
RedisDependencyInjectionExtensions.cs
來源:
RedisDependencyInjectionExtensions.cs

使用共用 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

參數

configure
Action<RedisOptions>

要設定 Redis 選項的回呼。

傳回

用於鏈結的相同 ISignalRServerBuilder 執行個體。

適用於

AddRedis(ISignalRServerBuilder, String)

來源:
RedisDependencyInjectionExtensions.cs
來源:
RedisDependencyInjectionExtensions.cs

使用共用 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

參數

redisConnectionString
String

用來連線到 Redis 伺服器的連接字串。

傳回

用於鏈結的相同 ISignalRServerBuilder 執行個體。

適用於

AddRedis(ISignalRServerBuilder, String, Action<RedisOptions>)

來源:
RedisDependencyInjectionExtensions.cs
來源:
RedisDependencyInjectionExtensions.cs

使用共用 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

參數

redisConnectionString
String

用來連線到 Redis 伺服器的連接字串。

configure
Action<RedisOptions>

要設定 Redis 選項的回呼。

傳回

用於鏈結的相同 ISignalRServerBuilder 執行個體。

適用於