Share via


WebPubSubServiceClient<THub> Class

Definition

Web PubSub serivce client based on user implemented WebPubSubHub. Hub name is the class name of user implemented WebPubSubHub.

public class WebPubSubServiceClient<THub> : Azure.Messaging.WebPubSub.WebPubSubServiceClient where THub : WebPubSubHub
type WebPubSubServiceClient<'Hub (requires 'Hub :> WebPubSubHub)> = class
    inherit WebPubSubServiceClient
Public Class WebPubSubServiceClient(Of THub)
Inherits WebPubSubServiceClient

Type Parameters

THub

User implemented WebPubSubHub.

Inheritance
WebPubSubServiceClient<THub>

Constructors

Name Description
WebPubSubServiceClient<THub>()

Initializes a new instance of WebPubSubServiceClient for mocking.

Properties

Name Description
Endpoint

The service endpoint.

(Inherited from WebPubSubServiceClient)
Hub

The hub.

(Inherited from WebPubSubServiceClient)
Pipeline

The HTTP pipeline for sending and receiving REST requests and responses.

(Inherited from WebPubSubServiceClient)

Methods

Name Description
AddConnectionsToGroups(IEnumerable<String>, String, RequestContext)

Add filtered connections to multiple groups.

(Inherited from WebPubSubServiceClient)
AddConnectionsToGroupsAsync(IEnumerable<String>, String, RequestContext)

Add filtered connections to multiple groups.

(Inherited from WebPubSubServiceClient)
AddConnectionToGroup(String, String, RequestContext)

[Protocol Method] Add a connection to the target group.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
AddConnectionToGroupAsync(String, String, RequestContext)

[Protocol Method] Add a connection to the target group.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
AddUserToGroup(String, String, RequestContext)

Add a user to the target group.

(Inherited from WebPubSubServiceClient)
AddUserToGroupAsync(String, String, RequestContext)

Add a user to the target group.

(Inherited from WebPubSubServiceClient)
CheckPermission(WebPubSubPermission, String, String, RequestContext)

Check if a connection has permission to the specified action.

(Inherited from WebPubSubServiceClient)
CheckPermissionAsync(WebPubSubPermission, String, String, RequestContext)

Check if a connection has permission to the specified action.

(Inherited from WebPubSubServiceClient)
CloseAllConnections(IEnumerable<String>, String, RequestContext)

[Protocol Method] Close the connections in the hub.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
CloseAllConnectionsAsync(IEnumerable<String>, String, RequestContext)

[Protocol Method] Close the connections in the hub.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
CloseConnection(String, String, RequestContext)

[Protocol Method] Close the client connection.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
CloseConnectionAsync(String, String, RequestContext)

[Protocol Method] Close the client connection.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
CloseGroupConnections(String, IEnumerable<String>, String, RequestContext)

[Protocol Method] Close connections in the specific group.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
CloseGroupConnectionsAsync(String, IEnumerable<String>, String, RequestContext)

[Protocol Method] Close connections in the specific group.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
CloseUserConnections(String, IEnumerable<String>, String, RequestContext)

[Protocol Method] Close connections for the specific user.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
CloseUserConnectionsAsync(String, IEnumerable<String>, String, RequestContext)

[Protocol Method] Close connections for the specific user.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
ConnectionExists(String, RequestContext)

Check if the connection with the given connectionId exists.

(Inherited from WebPubSubServiceClient)
ConnectionExistsAsync(String, RequestContext)

Check if the connection with the given connectionId exists.

(Inherited from WebPubSubServiceClient)
GetClientAccessUri(DateTimeOffset, String, IEnumerable<String>, IEnumerable<String>, WebPubSubClientProtocol, CancellationToken)

Creates a URI with authentication token for the clients.

(Inherited from WebPubSubServiceClient)
GetClientAccessUri(TimeSpan, String, IEnumerable<String>, IEnumerable<String>, WebPubSubClientProtocol, CancellationToken)

Creates a URI with authentication token for the clients.

(Inherited from WebPubSubServiceClient)
GetClientAccessUriAsync(DateTimeOffset, String, IEnumerable<String>, IEnumerable<String>, WebPubSubClientProtocol, CancellationToken)

Creates a URI with authentication token for the clients..

(Inherited from WebPubSubServiceClient)
GetClientAccessUriAsync(TimeSpan, String, IEnumerable<String>, IEnumerable<String>, WebPubSubClientProtocol, CancellationToken)

Creates a URI with authentication token for the clients.

(Inherited from WebPubSubServiceClient)
GrantPermission(WebPubSubPermission, String, String, RequestContext)

Grant permission to the connection.

(Inherited from WebPubSubServiceClient)
GrantPermissionAsync(WebPubSubPermission, String, String, RequestContext)

Grant permission to the connection.

(Inherited from WebPubSubServiceClient)
GroupExists(String, RequestContext)

Check if there are any client connections inside the given group.

(Inherited from WebPubSubServiceClient)
GroupExistsAsync(String, RequestContext)

Check if there are any client connections inside the given group.

(Inherited from WebPubSubServiceClient)
ListConnectionsInGroup(String, Nullable<Int32>, Nullable<Int32>, String)

List all the connections in a group.

(Inherited from WebPubSubServiceClient)
ListConnectionsInGroupAsync(String, Nullable<Int32>, Nullable<Int32>, String)

List all the connections in a group.

(Inherited from WebPubSubServiceClient)
RemoveConnectionFromAllGroups(String, RequestContext)

[Protocol Method] Remove a connection from all groups.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
RemoveConnectionFromAllGroupsAsync(String, RequestContext)

[Protocol Method] Remove a connection from all groups.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
RemoveConnectionFromGroup(String, String, RequestContext)

[Protocol Method] Remove a connection from the target group.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
RemoveConnectionFromGroupAsync(String, String, RequestContext)

[Protocol Method] Remove a connection from the target group.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
RemoveConnectionsFromGroups(IEnumerable<String>, String, RequestContext)

Remove filtered connections from multiple groups.

(Inherited from WebPubSubServiceClient)
RemoveConnectionsFromGroupsAsync(IEnumerable<String>, String, RequestContext)

Remove filtered connections from multiple groups.

(Inherited from WebPubSubServiceClient)
RemoveUserFromAllGroups(String, RequestContext)

[Protocol Method] Remove a user from all groups.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
RemoveUserFromAllGroupsAsync(String, RequestContext)

[Protocol Method] Remove a user from all groups.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
RemoveUserFromGroup(String, String, RequestContext)

Remove a user from the target group.

(Inherited from WebPubSubServiceClient)
RemoveUserFromGroupAsync(String, String, RequestContext)

Remove a user from the target group.

(Inherited from WebPubSubServiceClient)
RevokePermission(WebPubSubPermission, String, String, RequestContext)

Revoke permission for the connection.

(Inherited from WebPubSubServiceClient)
RevokePermissionAsync(WebPubSubPermission, String, String, RequestContext)

Revoke permission for the connection.

(Inherited from WebPubSubServiceClient)
SendToAll(RequestContent, ContentType, IEnumerable<String>, RequestContext)

Broadcast content inside request body to all the connected client connections.

(Inherited from WebPubSubServiceClient)
SendToAll(RequestContent, ContentType, IEnumerable<String>, String, RequestContext)

[Protocol Method] Broadcast content inside request body to all the connected client connections.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
SendToAll(String, ContentType)

Broadcast message to all the connected client connections.

(Inherited from WebPubSubServiceClient)
SendToAllAsync(RequestContent, ContentType, IEnumerable<String>, RequestContext)

Broadcast content inside request body to all the connected client connections.

(Inherited from WebPubSubServiceClient)
SendToAllAsync(RequestContent, ContentType, IEnumerable<String>, String, RequestContext)

[Protocol Method] Broadcast content inside request body to all the connected client connections.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
SendToAllAsync(String, ContentType)

Broadcast message to all the connected client connections.

(Inherited from WebPubSubServiceClient)
SendToConnection(String, RequestContent, ContentType, RequestContext)

[Protocol Method] Send content inside request body to the specific connection.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
SendToConnection(String, String, ContentType)

Send message to the specific connection.

(Inherited from WebPubSubServiceClient)
SendToConnectionAsync(String, RequestContent, ContentType, RequestContext)

[Protocol Method] Send content inside request body to the specific connection.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
SendToConnectionAsync(String, String, ContentType)

Send message to the specific connection.

(Inherited from WebPubSubServiceClient)
SendToGroup(String, RequestContent, ContentType, IEnumerable<String>, RequestContext)

Send content inside request body to a group of connections.

(Inherited from WebPubSubServiceClient)
SendToGroup(String, RequestContent, ContentType, IEnumerable<String>, String, RequestContext)

[Protocol Method] Send content inside request body to a group of connections.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
SendToGroup(String, String, ContentType)

Send message to a group of connections.

(Inherited from WebPubSubServiceClient)
SendToGroupAsync(String, RequestContent, ContentType, IEnumerable<String>, RequestContext)

Send content inside request body to a group of connections.

(Inherited from WebPubSubServiceClient)
SendToGroupAsync(String, RequestContent, ContentType, IEnumerable<String>, String, RequestContext)

[Protocol Method] Send content inside request body to a group of connections.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
SendToGroupAsync(String, String, ContentType)

Send message to a group of connections.

(Inherited from WebPubSubServiceClient)
SendToUser(String, RequestContent, ContentType, RequestContext)

Send content inside request body to the specific user.

(Inherited from WebPubSubServiceClient)
SendToUser(String, RequestContent, ContentType, String, RequestContext)

[Protocol Method] Send content inside request body to the specific user.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
SendToUser(String, String, ContentType)

Send message to the specific user.

(Inherited from WebPubSubServiceClient)
SendToUserAsync(String, RequestContent, ContentType, RequestContext)

Send content inside request body to the specific user.

(Inherited from WebPubSubServiceClient)
SendToUserAsync(String, RequestContent, ContentType, String, RequestContext)

[Protocol Method] Send content inside request body to the specific user.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
(Inherited from WebPubSubServiceClient)
SendToUserAsync(String, String, ContentType)

Send message to the specific user.

(Inherited from WebPubSubServiceClient)
UserExists(String, RequestContext)

Check if there are any client connections connected for the given user.

(Inherited from WebPubSubServiceClient)
UserExistsAsync(String, RequestContext)

Check if there are any client connections connected for the given user.

(Inherited from WebPubSubServiceClient)

Applies to