ArmWebPubSubModelFactory.WebPubSubEventNameFilter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Filter events by their name.
public static Azure.ResourceManager.WebPubSub.Models.WebPubSubEventNameFilter WebPubSubEventNameFilter(System.Collections.Generic.IEnumerable<string> systemEvents = default, string userEventPattern = default);
static member WebPubSubEventNameFilter : seq<string> * string -> Azure.ResourceManager.WebPubSub.Models.WebPubSubEventNameFilter
Public Shared Function WebPubSubEventNameFilter (Optional systemEvents As IEnumerable(Of String) = Nothing, Optional userEventPattern As String = Nothing) As WebPubSubEventNameFilter
Parameters
- systemEvents
- IEnumerable<String>
Gets or sets a list of system events. Supported events: "connected" and "disconnected". Blocking event "connect" is not supported because it requires a response.
- userEventPattern
- String
Gets or sets a matching pattern for event names. There are 3 kinds of patterns supported:
- "*", it matches any event name
- Combine multiple events with ",", for example "event1,event2", it matches events "event1" and "event2"
- A single event name, for example, "event1", it matches "event1"
Returns
A new WebPubSubEventNameFilter instance for mocking.