Skip to main content

IRedisSubscription

Assembly: ServiceStack.Interfaces.dll​
View Source​
Declaration
public interface IRedisSubscription : IDisposable

Properties​

SubscriptionCount​

The number of active subscriptions this client has

View Source​
Declaration
long SubscriptionCount { get; }

OnSubscribe​

Registered handler called after client Subscribes to each new channel

View Source​
Declaration
Action<string> OnSubscribe { get; set; }

OnMessage​

Registered handler called when each message is received

View Source​
Declaration
Action<string, string> OnMessage { get; set; }

OnMessageBytes​

Registered handler called when each message is received

View Source​
Declaration
Action<string, byte[]> OnMessageBytes { get; set; }

OnUnSubscribe​

Registered handler called when each channel is unsubscribed

View Source​
Declaration
Action<string> OnUnSubscribe { get; set; }

Methods​

SubscribeToChannels(String[])​

Subscribe to channels by name

View Source​
Declaration
void SubscribeToChannels(params string[] channels)
Parameters​
TypeName
System.String[]channels

SubscribeToChannelsMatching(String[])​

Subscribe to channels matching the supplied patterns

View Source​
Declaration
void SubscribeToChannelsMatching(params string[] patterns)
Parameters​
TypeName
System.String[]patterns

UnSubscribeFromAllChannels()​

View Source​
Declaration
void UnSubscribeFromAllChannels()

UnSubscribeFromChannels(String[])​

View Source​
Declaration
void UnSubscribeFromChannels(params string[] channels)
Parameters​
TypeName
System.String[]channels

UnSubscribeFromChannelsMatching(String[])​

View Source​
Declaration
void UnSubscribeFromChannelsMatching(params string[] patterns)
Parameters​
TypeName
System.String[]patterns