Skip to main content

RedisSubscription

Assembly: ServiceStack.Redis.dll
View Source
Declaration
public class RedisSubscription : IRedisSubscriptionAsync, IRedisSubscription, IDisposable

Properties

SubscriptionCount

View Source
Declaration
public long SubscriptionCount { get; }

IsPSubscription

View Source
Declaration
public bool IsPSubscription { get; }

OnSubscribe

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

OnMessage

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

OnMessageBytes

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

OnUnSubscribe

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

Methods

SubscribeToChannels(String[])

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

SubscribeToChannelsMatching(String[])

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

UnSubscribeFromAllChannels()

View Source
Declaration
public void UnSubscribeFromAllChannels()

UnSubscribeFromAllChannelsMatchingAnyPatterns()

View Source
Declaration
public void UnSubscribeFromAllChannelsMatchingAnyPatterns()

UnSubscribeFromChannels(String[])

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

UnSubscribeFromChannelsMatching(String[])

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

Dispose()

View Source
Declaration
public void Dispose()

Implements