Skip to main content

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
TypeName
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
TypeName
System.Stringselector
System.Stringmessage

PublishAsync(String, String, CancellationToken)

View Source
Declaration
Task PublishAsync(string selector, string message, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Stringselector
System.Stringmessage
System.Threading.CancellationTokentoken

PublishRaw(String)

View Source
Declaration
void PublishRaw(string frame)
Parameters
TypeName
System.Stringframe

PublishRawAsync(String, CancellationToken)

View Source
Declaration
Task PublishRawAsync(string frame, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Stringframe
System.Threading.CancellationTokentoken

Pulse()

View Source
Declaration
void Pulse()