ArmWebPubSubModelFactory.WebPubSubHubProperties Method

Definition

Properties of a hub.

public static Azure.ResourceManager.WebPubSub.Models.WebPubSubHubProperties WebPubSubHubProperties(System.Collections.Generic.IEnumerable<Azure.ResourceManager.WebPubSub.Models.WebPubSubEventHandler> eventHandlers = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.WebPubSub.Models.WebPubSubEventListener> eventListeners = default, string anonymousConnectPolicy = default, int? webSocketKeepAliveIntervalInSeconds = default);
static member WebPubSubHubProperties : seq<Azure.ResourceManager.WebPubSub.Models.WebPubSubEventHandler> * seq<Azure.ResourceManager.WebPubSub.Models.WebPubSubEventListener> * string * Nullable<int> -> Azure.ResourceManager.WebPubSub.Models.WebPubSubHubProperties
Public Shared Function WebPubSubHubProperties (Optional eventHandlers As IEnumerable(Of WebPubSubEventHandler) = Nothing, Optional eventListeners As IEnumerable(Of WebPubSubEventListener) = Nothing, Optional anonymousConnectPolicy As String = Nothing, Optional webSocketKeepAliveIntervalInSeconds As Nullable(Of Integer) = Nothing) As WebPubSubHubProperties

Parameters

eventHandlers
IEnumerable<WebPubSubEventHandler>

Event handler of a hub.

eventListeners
IEnumerable<WebPubSubEventListener>

Event listener settings for forwarding your client events to listeners. Event listener is transparent to Web PubSub clients, and it doesn't return any result to clients nor interrupt the lifetime of clients. One event can be sent to multiple listeners, as long as it matches the filters in those listeners. The order of the array elements doesn't matter. Maximum count of event listeners among all hubs is 10.

anonymousConnectPolicy
String

The settings for configuring if anonymous connections are allowed for this hub: "allow" or "deny". Default to "deny".

webSocketKeepAliveIntervalInSeconds
Nullable<Int32>

The settings for configuring the WebSocket ping-pong interval in seconds for all clients in the hub. Valid range: 1 to 120. Default to 20 seconds.

Returns

A new WebPubSubHubProperties instance for mocking.

Applies to