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
Type | Name |
---|---|
System.String[] | channels |
SubscribeToChannelsMatching(String[])
View Source
Declaration
public void SubscribeToChannelsMatching(params string[] patterns)
Parameters
Type | Name |
---|---|
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
Type | Name |
---|---|
System.String[] | channels |
UnSubscribeFromChannelsMatching(String[])
View Source
Declaration
public void UnSubscribeFromChannelsMatching(params string[] patterns)
Parameters
Type | Name |
---|---|
System.String[] | patterns |
Dispose()
View Source
Declaration
public void Dispose()
Implements
- ServiceStack.Redis.IRedisSubscriptionAsync
IAsyncDisposable
- ServiceStack.Redis.IRedisSubscription
System.IDisposable