ServerEventExtensions
Assembly: ServiceStack.dll
View Source
Declaration
public static class ServerEventExtensions
Methods
GetInfo(IEventSubscription)
View Source
Declaration
public static SubscriptionInfo GetInfo(this IEventSubscription sub)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.IEventSubscription | sub |
HasChannel(IEventSubscription, String)
View Source
Declaration
public static bool HasChannel(this IEventSubscription sub, string channel)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.IEventSubscription | sub |
System.String | channel |
HasAnyChannel(IEventSubscription, String[])
View Source
Declaration
public static bool HasAnyChannel(this IEventSubscription sub, string[] channels)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.IEventSubscription | sub |
System.String[] | channels |
NotifyAll(IServerEvents, Object)
View Source
Declaration
public static void NotifyAll(this IServerEvents server, object message)
Parameters
Type | Name |
---|---|
ServiceStack.IServerEvents | server |
System.Object | message |
NotifyAllAsync(IServerEvents, Object, CancellationToken)
View Source
Declaration
public static Task NotifyAllAsync(this IServerEvents server, object message, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.IServerEvents | server |
System.Object | message |
System.Threading.CancellationToken | token |
NotifyChannel(IServerEvents, String, Object)
View Source
Declaration
public static void NotifyChannel(this IServerEvents server, string channel, object message)
Parameters
Type | Name |
---|---|
ServiceStack.IServerEvents | server |
System.String | channel |
System.Object | message |
NotifyChannelAsync(IServerEvents, String, Object, CancellationToken)
View Source
Declaration
public static Task NotifyChannelAsync(this IServerEvents server, string channel, object message, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.IServerEvents | server |
System.String | channel |
System.Object | message |
System.Threading.CancellationToken | token |
NotifySubscription(IServerEvents, String, Object, String)
View Source
Declaration
public static void NotifySubscription(this IServerEvents server, string subscriptionId, object message, string channel = null)
Parameters
Type | Name |
---|---|
ServiceStack.IServerEvents | server |
System.String | subscriptionId |
System.Object | message |
System.String | channel |
NotifySubscriptionAsync(IServerEvents, String, Object, String, CancellationToken)
View Source
Declaration
public static Task NotifySubscriptionAsync(this IServerEvents server, string subscriptionId, object message, string channel = null, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.IServerEvents | server |
System.String | subscriptionId |
System.Object | message |
System.String | channel |
System.Threading.CancellationToken | token |
NotifyUserId(IServerEvents, String, Object, String)
View Source
Declaration
public static void NotifyUserId(this IServerEvents server, string userId, object message, string channel = null)
Parameters
Type | Name |
---|---|
ServiceStack.IServerEvents | server |
System.String | userId |
System.Object | message |
System.String | channel |
NotifyUserIdAsync(IServerEvents, String, Object, String, CancellationToken)
View Source
Declaration
public static Task NotifyUserIdAsync(this IServerEvents server, string userId, object message, string channel = null, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.IServerEvents | server |
System.String | userId |
System.Object | message |
System.String | channel |
System.Threading.CancellationToken | token |
NotifyUserName(IServerEvents, String, Object, String)
View Source
Declaration
public static void NotifyUserName(this IServerEvents server, string userName, object message, string channel = null)
Parameters
Type | Name |
---|---|
ServiceStack.IServerEvents | server |
System.String | userName |
System.Object | message |
System.String | channel |
NotifyUserNameAsync(IServerEvents, String, Object, String, CancellationToken)
View Source
Declaration
public static Task NotifyUserNameAsync(this IServerEvents server, string userName, object message, string channel = null, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.IServerEvents | server |
System.String | userName |
System.Object | message |
System.String | channel |
System.Threading.CancellationToken | token |
NotifySession(IServerEvents, String, Object, String)
View Source
Declaration
public static void NotifySession(this IServerEvents server, string sspid, object message, string channel = null)
Parameters
Type | Name |
---|---|
ServiceStack.IServerEvents | server |
System.String | sspid |
System.Object | message |
System.String | channel |
NotifySessionAsync(IServerEvents, String, Object, String, CancellationToken)
View Source
Declaration
public static Task NotifySessionAsync(this IServerEvents server, string sspid, object message, string channel = null, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.IServerEvents | server |
System.String | sspid |
System.Object | message |
System.String | channel |
System.Threading.CancellationToken | token |
IsGrpc(IEventSubscription)
View Source
Declaration
public static bool IsGrpc(this IEventSubscription sub)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.IEventSubscription | sub |