Property | Type | Description | |
---|---|---|---|
GetConnection | StackExchange.Redis.ConnectionMultiplexer | ||
PubSubSingleton | System |
Method | Description | |
---|---|---|
Init ( StackExchange.Redis.ConnectionMultiplexer connection ) : void |
Configures the singleton.
|
|
Publish ( string channel, string value ) : long |
Publishes a message to a channel.
|
|
Publish ( string channel, string key, string value ) : long |
Publishes a message to a channel for a specific key.
|
|
PublishAsync ( string channel, string value ) : Task |
Publishes a message to a channel.
|
|
PublishAsync ( string channel, string key, string value ) : Task |
Publishes a message to a channel for a specific key.
|
|
Subscribe ( string channel, Action |
Creates a subscription to a channel.
|
|
Subscribe ( string channel, string key, Action |
Creates a subscription to a channel for a specific key.
|
|
SubscribeAsync ( string channel, Action |
Creates a subscription to a channel.
|
|
SubscribeAsync ( string channel, string key, Action |
Creates a subscription to a channel for a specific key.
|
Method | Description | |
---|---|---|
GetConnection ( ) : StackExchange.Redis.ConnectionMultiplexer |
Gets a connection, automatically re-establishing all active subscriptions if the connection was re-created.
|
|
PubSubSingleton ( ) : System |
Prevents a default instance of the PubSubSingleton class from being created.
|
public Init ( StackExchange.Redis.ConnectionMultiplexer connection ) : void | ||
connection | StackExchange.Redis.ConnectionMultiplexer | /// The connection. /// |
return | void |
public Publish ( string channel, string value ) : long | ||
channel | string | The channel to publish to. |
value | string | The value of the message. |
return | long |
public Publish ( string channel, string key, string value ) : long | ||
channel | string | /// The channel to publish to. /// |
key | string | /// The key to target. /// |
value | string | /// The value of the message. /// |
return | long |
public PublishAsync ( string channel, string value ) : Task |
||
channel | string | /// The channel to publish to. /// |
value | string | /// The value of the message. /// |
return | Task |
public PublishAsync ( string channel, string key, string value ) : Task |
||
channel | string | /// The channel to publish to. /// |
key | string | /// The key to target. /// |
value | string | /// The value of the message. /// |
return | Task |
public Subscribe ( string channel, Action |
||
channel | string | /// The channel of the subscription. /// |
subscriptionCallback | Action |
/// The callback method. /// |
return | void |
public Subscribe ( string channel, string key, Action |
||
channel | string | /// The channel of the subscription. /// |
key | string | /// The key to target. /// |
subscriptionCallback | Action |
/// The callback method. /// |
return | void |
public SubscribeAsync ( string channel, Action |
||
channel | string | /// The channel of the subscription. /// |
subscriptionCallback | Action |
/// The callback method. /// |
return | Task |
public SubscribeAsync ( string channel, string key, Action |
||
channel | string | /// The channel of the subscription. /// |
key | string | /// The key to target. /// |
subscriptionCallback | Action |
/// The callback method. /// |
return | Task |