IEventSubscription
Assembly: ServiceStack.dll
View Source
Declaration
public interface IEventSubscription : IDisposable
Properties
CreatedAt
View Source
Declaration
DateTime CreatedAt { get; set; }
LastPulseAt
View Source
Declaration
DateTime LastPulseAt { get; set; }
LastMessageId
View Source
Declaration
long LastMessageId { get; }
Channels
View Source
Declaration
string[] Channels { get; }
MergedChannels
View Source
Declaration
string[] MergedChannels { get; }
UserId
View Source
Declaration
string UserId { get; }
UserName
View Source
Declaration
string UserName { get; }
DisplayName
View Source
Declaration
string DisplayName { get; }
SessionId
View Source
Declaration
string SessionId { get; }
SubscriptionId
View Source
Declaration
string SubscriptionId { get; }
UserAddress
View Source
Declaration
string UserAddress { get; set; }
IsAuthenticated
View Source
Declaration
bool IsAuthenticated { get; set; }
IsClosed
View Source
Declaration
bool IsClosed { get; }
OnUnsubscribeAsync
View Source
Declaration
Func<IEventSubscription, Task> OnUnsubscribeAsync { get; set; }
OnUnsubscribe
View Source
Declaration
Action<IEventSubscription> OnUnsubscribe { get; set; }
Meta
View Source
Declaration
ConcurrentDictionary<string, string> Meta { get; set; }
ServerArgs
View Source
Declaration
Dictionary<string, string> ServerArgs { get; set; }
ConnectArgs
View Source
Declaration
Dictionary<string, string> ConnectArgs { get; set; }
JsonArgs
View Source
Declaration
string JsonArgs { get; }
Methods
UpdateChannels(String[])
View Source
Declaration
void UpdateChannels(string[] channels)
Parameters
Type | Name |
---|---|
System.String[] | channels |
Unsubscribe()
View Source
Declaration
[Obsolete("Use UnsubscribeAsync. Will be removed in future.")]
void Unsubscribe()
UnsubscribeAsync()
View Source
Declaration
Task UnsubscribeAsync()
Returns
System.Threading.Tasks.Task
Publish(String, String)
View Source
Declaration
void Publish(string selector, string message)
Parameters
Type | Name |
---|---|
System.String | selector |
System.String | message |
PublishAsync(String, String, CancellationToken)
View Source
Declaration
Task PublishAsync(string selector, string message, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.String | selector |
System.String | message |
System.Threading.CancellationToken | token |
PublishRaw(String)
View Source
Declaration
void PublishRaw(string frame)
Parameters
Type | Name |
---|---|
System.String | frame |
PublishRawAsync(String, CancellationToken)
View Source
Declaration
Task PublishRawAsync(string frame, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.String | frame |
System.Threading.CancellationToken | token |
Pulse()
View Source
Declaration
void Pulse()