C# Class BB.Caching.Redis.PubSub

Manages all pub-sub related workflows.
Afficher le fichier Open project: JesseBuesking/BB.Caching

Méthodes publiques

Méthode Description
Configure ( StackExchange.Redis.ConnectionMultiplexer connection ) : void

Configures the pub sub instance.

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 subscriptionCallback ) : void

Creates a subscription to a channel.

Subscribe ( string channel, string key, Action subscriptionCallback ) : void

Creates a subscription to a channel for a specific key.

SubscribeAsync ( string channel, Action subscriptionCallback ) : Task

Creates a subscription to a channel.

SubscribeAsync ( string channel, string key, Action subscriptionCallback ) : Task

Creates a subscription to a channel for a specific key.

Method Details

Configure() public static méthode

Configures the pub sub instance.
public static Configure ( StackExchange.Redis.ConnectionMultiplexer connection ) : void
connection StackExchange.Redis.ConnectionMultiplexer /// The connection. ///
Résultat void

Publish() public static méthode

Publishes a message to a channel.
public static Publish ( string channel, string value ) : long
channel string The channel to publish to.
value string The value of the message.
Résultat long

Publish() public static méthode

Publishes a message to a channel for a specific key.
public static 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.
Résultat long

PublishAsync() public static méthode

Publishes a message to a channel.
public static PublishAsync ( string channel, string value ) : Task
channel string The channel to publish to.
value string The value of the message.
Résultat Task

PublishAsync() public static méthode

Publishes a message to a channel for a specific key.
public static 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.
Résultat Task

Subscribe() public static méthode

Creates a subscription to a channel.
public static Subscribe ( string channel, Action subscriptionCallback ) : void
channel string The channel of the subscription.
subscriptionCallback Action The callback method.
Résultat void

Subscribe() public static méthode

Creates a subscription to a channel for a specific key.
public static Subscribe ( string channel, string key, Action subscriptionCallback ) : void
channel string The channel of the subscription.
key string The key to target.
subscriptionCallback Action The callback method.
Résultat void

SubscribeAsync() public static méthode

Creates a subscription to a channel.
public static SubscribeAsync ( string channel, Action subscriptionCallback ) : Task
channel string /// The channel of the subscription. ///
subscriptionCallback Action /// The callback method. ///
Résultat Task

SubscribeAsync() public static méthode

Creates a subscription to a channel for a specific key.
public static SubscribeAsync ( string channel, string key, Action subscriptionCallback ) : Task
channel string /// The channel of the subscription. ///
key string /// The key to target. ///
subscriptionCallback Action /// The callback method. ///
Résultat Task