Share via


WebPubSubEventHandler Class

Definition

Properties of event handler.

public class WebPubSubEventHandler
public class WebPubSubEventHandler : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.WebPubSub.Models.WebPubSubEventHandler>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.WebPubSub.Models.WebPubSubEventHandler>
type WebPubSubEventHandler = class
type WebPubSubEventHandler = class
    interface IJsonModel<WebPubSubEventHandler>
    interface IPersistableModel<WebPubSubEventHandler>
Public Class WebPubSubEventHandler
Public Class WebPubSubEventHandler
Implements IJsonModel(Of WebPubSubEventHandler), IPersistableModel(Of WebPubSubEventHandler)
Inheritance
WebPubSubEventHandler
Implements

Constructors

WebPubSubEventHandler(String)

Initializes a new instance of WebPubSubEventHandler.

Properties

Auth

Upstream auth settings. If not set, no auth is used for upstream messages.

SystemEvents

Gets ot sets the list of system events.

UrlTemplate

Gets or sets the EventHandler URL template. You can use a predefined parameter {hub} and {event} inside the template, the value of the EventHandler URL is dynamically calculated when the client request comes in. For example, UrlTemplate can be http://example.com/api/{hub}/{event}. The host part can't contains parameters.

UserEventPattern

Gets or sets the matching pattern for event names. There are 3 kind of patterns supported: 1. "*", it to matches any event name 2. Combine multiple events with ",", for example "event1,event2", it matches event "event1" and "event2" 3. The single event name, for example, "event1", it matches "event1"

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<WebPubSubEventHandler>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<WebPubSubEventHandler>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<WebPubSubEventHandler>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<WebPubSubEventHandler>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<WebPubSubEventHandler>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to