Skip to main content

ServerEventClientExtensions

Assembly: ServiceStack.Client.dll
View Source
Declaration
public static class ServerEventClientExtensions

Methods

Authenticate(ServerEventsClient, Authenticate)

View Source
Declaration
public static AuthenticateResponse Authenticate(this ServerEventsClient client, Authenticate request)
Returns

ServiceStack.AuthenticateResponse

Parameters
TypeName
ServiceStack.ServerEventsClientclient
ServiceStack.Authenticaterequest

AuthenticateAsync(ServerEventsClient, Authenticate)

View Source
Declaration
public static Task<AuthenticateResponse> AuthenticateAsync(this ServerEventsClient client, Authenticate request)
Returns

System.Threading.Tasks.Task<ServiceStack.AuthenticateResponse>

Parameters
TypeName
ServiceStack.ServerEventsClientclient
ServiceStack.Authenticaterequest

UpdateSubscriber(ServerEventsClient, UpdateEventSubscriber)

View Source
Declaration
public static void UpdateSubscriber(this ServerEventsClient client, UpdateEventSubscriber request)
Parameters
TypeName
ServiceStack.ServerEventsClientclient
ServiceStack.UpdateEventSubscriberrequest

UpdateSubscriberAsync(ServerEventsClient, UpdateEventSubscriber)

View Source
Declaration
public static Task UpdateSubscriberAsync(this ServerEventsClient client, UpdateEventSubscriber request)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.ServerEventsClientclient
ServiceStack.UpdateEventSubscriberrequest

SubscribeToChannels(ServerEventsClient, String[])

View Source
Declaration
public static void SubscribeToChannels(this ServerEventsClient client, params string[] channels)
Parameters
TypeName
ServiceStack.ServerEventsClientclient
System.String[]channels

SubscribeToChannelsAsync(ServerEventsClient, String[])

View Source
Declaration
public static Task SubscribeToChannelsAsync(this ServerEventsClient client, params string[] channels)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.ServerEventsClientclient
System.String[]channels

UnsubscribeFromChannels(ServerEventsClient, String[])

View Source
Declaration
public static void UnsubscribeFromChannels(this ServerEventsClient client, params string[] channels)
Parameters
TypeName
ServiceStack.ServerEventsClientclient
System.String[]channels

UnsubscribeFromChannelsAsync(ServerEventsClient, String[])

View Source
Declaration
public static Task UnsubscribeFromChannelsAsync(this ServerEventsClient client, params string[] channels)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.ServerEventsClientclient
System.String[]channels

GetChannelSubscribers(ServerEventsClient)

View Source
Declaration
public static List<ServerEventUser> GetChannelSubscribers(this ServerEventsClient client)
Returns

System.Collections.Generic.List<ServiceStack.ServerEventUser>

Parameters
TypeName
ServiceStack.ServerEventsClientclient

GetChannelSubscribersAsync(ServerEventsClient)

View Source
Declaration
public static Task<List<ServerEventUser>> GetChannelSubscribersAsync(this ServerEventsClient client)
Returns

System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.ServerEventUser>>

Parameters
TypeName
ServiceStack.ServerEventsClientclient

Populate<T>(T, ServerEventMessage, Dictionary<String, String>)

View Source
Declaration
public static T Populate<T>(this T dst, ServerEventMessage src, Dictionary<string, string> msg)
where T : ServerEventMessage
Returns

<T>

Parameters
TypeName
<T>dst
ServiceStack.ServerEventMessagesrc
System.Collections.Generic.Dictionary<System.String,System.String>msg
Type Parameters
  • T

RegisterHandlers(ServerEventsClient, Dictionary<String, ServerEventCallback>)

View Source
Declaration
public static ServerEventsClient RegisterHandlers(this ServerEventsClient client, Dictionary<string, ServerEventCallback> handlers)
Returns

ServiceStack.ServerEventsClient

Parameters
TypeName
ServiceStack.ServerEventsClientclient
System.Collections.Generic.Dictionary<System.String,ServiceStack.ServerEventCallback>handlers