Skip to main content

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

ServiceStack.SubscriptionInfo

Parameters
TypeName
ServiceStack.IEventSubscriptionsub

HasChannel(IEventSubscription, String)

View Source
Declaration
public static bool HasChannel(this IEventSubscription sub, string channel)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.IEventSubscriptionsub
System.Stringchannel

HasAnyChannel(IEventSubscription, String[])

View Source
Declaration
public static bool HasAnyChannel(this IEventSubscription sub, string[] channels)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.IEventSubscriptionsub
System.String[]channels

NotifyAll(IServerEvents, Object)

View Source
Declaration
public static void NotifyAll(this IServerEvents server, object message)
Parameters
TypeName
ServiceStack.IServerEventsserver
System.Objectmessage

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
TypeName
ServiceStack.IServerEventsserver
System.Objectmessage
System.Threading.CancellationTokentoken

NotifyChannel(IServerEvents, String, Object)

View Source
Declaration
public static void NotifyChannel(this IServerEvents server, string channel, object message)
Parameters
TypeName
ServiceStack.IServerEventsserver
System.Stringchannel
System.Objectmessage

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
TypeName
ServiceStack.IServerEventsserver
System.Stringchannel
System.Objectmessage
System.Threading.CancellationTokentoken

NotifySubscription(IServerEvents, String, Object, String)

View Source
Declaration
public static void NotifySubscription(this IServerEvents server, string subscriptionId, object message, string channel = null)
Parameters
TypeName
ServiceStack.IServerEventsserver
System.StringsubscriptionId
System.Objectmessage
System.Stringchannel

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
TypeName
ServiceStack.IServerEventsserver
System.StringsubscriptionId
System.Objectmessage
System.Stringchannel
System.Threading.CancellationTokentoken

NotifyUserId(IServerEvents, String, Object, String)

View Source
Declaration
public static void NotifyUserId(this IServerEvents server, string userId, object message, string channel = null)
Parameters
TypeName
ServiceStack.IServerEventsserver
System.StringuserId
System.Objectmessage
System.Stringchannel

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
TypeName
ServiceStack.IServerEventsserver
System.StringuserId
System.Objectmessage
System.Stringchannel
System.Threading.CancellationTokentoken

NotifyUserName(IServerEvents, String, Object, String)

View Source
Declaration
public static void NotifyUserName(this IServerEvents server, string userName, object message, string channel = null)
Parameters
TypeName
ServiceStack.IServerEventsserver
System.StringuserName
System.Objectmessage
System.Stringchannel

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
TypeName
ServiceStack.IServerEventsserver
System.StringuserName
System.Objectmessage
System.Stringchannel
System.Threading.CancellationTokentoken

NotifySession(IServerEvents, String, Object, String)

View Source
Declaration
public static void NotifySession(this IServerEvents server, string sspid, object message, string channel = null)
Parameters
TypeName
ServiceStack.IServerEventsserver
System.Stringsspid
System.Objectmessage
System.Stringchannel

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
TypeName
ServiceStack.IServerEventsserver
System.Stringsspid
System.Objectmessage
System.Stringchannel
System.Threading.CancellationTokentoken

IsGrpc(IEventSubscription)

View Source
Declaration
public static bool IsGrpc(this IEventSubscription sub)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.IEventSubscriptionsub