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
Type | Name |
---|---|
ServiceStack.ServerEventsClient | client |
ServiceStack.Authenticate | request |
AuthenticateAsync(ServerEventsClient, Authenticate)
View Source
Declaration
public static Task<AuthenticateResponse> AuthenticateAsync(this ServerEventsClient client, Authenticate request)
Returns
System.Threading.Tasks.Task<ServiceStack.AuthenticateResponse>
Parameters
Type | Name |
---|---|
ServiceStack.ServerEventsClient | client |
ServiceStack.Authenticate | request |
UpdateSubscriber(ServerEventsClient, UpdateEventSubscriber)
View Source
Declaration
public static void UpdateSubscriber(this ServerEventsClient client, UpdateEventSubscriber request)
Parameters
Type | Name |
---|---|
ServiceStack.ServerEventsClient | client |
ServiceStack.UpdateEventSubscriber | request |
UpdateSubscriberAsync(ServerEventsClient, UpdateEventSubscriber)
View Source
Declaration
public static Task UpdateSubscriberAsync(this ServerEventsClient client, UpdateEventSubscriber request)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.ServerEventsClient | client |
ServiceStack.UpdateEventSubscriber | request |
SubscribeToChannels(ServerEventsClient, String[])
View Source
Declaration
public static void SubscribeToChannels(this ServerEventsClient client, params string[] channels)
Parameters
Type | Name |
---|---|
ServiceStack.ServerEventsClient | client |
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
Type | Name |
---|---|
ServiceStack.ServerEventsClient | client |
System.String[] | channels |
UnsubscribeFromChannels(ServerEventsClient, String[])
View Source
Declaration
public static void UnsubscribeFromChannels(this ServerEventsClient client, params string[] channels)
Parameters
Type | Name |
---|---|
ServiceStack.ServerEventsClient | client |
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
Type | Name |
---|---|
ServiceStack.ServerEventsClient | client |
System.String[] | channels |
GetChannelSubscribers(ServerEventsClient)
View Source
Declaration
public static List<ServerEventUser> GetChannelSubscribers(this ServerEventsClient client)
Returns
System.Collections.Generic.List<ServiceStack.ServerEventUser>
Parameters
Type | Name |
---|---|
ServiceStack.ServerEventsClient | client |
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
Type | Name |
---|---|
ServiceStack.ServerEventsClient | client |
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
Type | Name |
---|---|
<T> | dst |
ServiceStack.ServerEventMessage | src |
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
Type | Name |
---|---|
ServiceStack.ServerEventsClient | client |
System.Collections.Generic.Dictionary<System.String,ServiceStack.ServerEventCallback> | handlers |