Freigeben über


AzureWebPubSubExtensions.AddEventHandler Method

Definition

Overloads

AddEventHandler(IResourceBuilder<AzureWebPubSubHubResource>, ReferenceExpression, String, String[], UpstreamAuthSettings)

Add event handler setting with expression

AddEventHandler(IResourceBuilder<AzureWebPubSubHubResource>, ReferenceExpression+ExpressionInterpolatedStringHandler, String, String[], UpstreamAuthSettings)

Add event handler setting with expression

AddEventHandler(IResourceBuilder<AzureWebPubSubHubResource>, ReferenceExpression, String, String[], UpstreamAuthSettings)

Source:
AzureWebPubSubExtensions.cs

Add event handler setting with expression

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubHubResource> AddEventHandler (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubHubResource> builder, Aspire.Hosting.ApplicationModel.ReferenceExpression urlExpression, string userEventPattern = "*", string[]? systemEvents = default, Azure.Provisioning.WebPubSub.UpstreamAuthSettings? authSettings = default);
static member AddEventHandler : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubHubResource> * Aspire.Hosting.ApplicationModel.ReferenceExpression * string * string[] * Azure.Provisioning.WebPubSub.UpstreamAuthSettings -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubHubResource>
<Extension()>
Public Function AddEventHandler (builder As IResourceBuilder(Of AzureWebPubSubHubResource), urlExpression As ReferenceExpression, Optional userEventPattern As String = "*", Optional systemEvents As String() = Nothing, Optional authSettings As UpstreamAuthSettings = Nothing) As IResourceBuilder(Of AzureWebPubSubHubResource)

Parameters

builder
IResourceBuilder<AzureWebPubSubHubResource>

The builder for a Web PubSub hub.

urlExpression
ReferenceExpression

The expression to evaluate the URL template configured for the event handler.

userEventPattern
String

The user event pattern for the event handler.

systemEvents
String[]

The system events for the event handler.

authSettings
UpstreamAuthSettings

The auth settings configured for the event handler.

Returns

Applies to

AddEventHandler(IResourceBuilder<AzureWebPubSubHubResource>, ReferenceExpression+ExpressionInterpolatedStringHandler, String, String[], UpstreamAuthSettings)

Source:
AzureWebPubSubExtensions.cs

Add event handler setting with expression

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubHubResource> AddEventHandler (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubHubResource> builder, Aspire.Hosting.ApplicationModel.ReferenceExpression.ExpressionInterpolatedStringHandler urlTemplateExpression, string userEventPattern = "*", string[]? systemEvents = default, Azure.Provisioning.WebPubSub.UpstreamAuthSettings? authSettings = default);
static member AddEventHandler : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubHubResource> * Aspire.Hosting.ApplicationModel.ReferenceExpression.ExpressionInterpolatedStringHandler * string * string[] * Azure.Provisioning.WebPubSub.UpstreamAuthSettings -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.AzureWebPubSubHubResource>
<Extension()>
Public Function AddEventHandler (builder As IResourceBuilder(Of AzureWebPubSubHubResource), urlTemplateExpression As ReferenceExpression.ExpressionInterpolatedStringHandler, Optional userEventPattern As String = "*", Optional systemEvents As String() = Nothing, Optional authSettings As UpstreamAuthSettings = Nothing) As IResourceBuilder(Of AzureWebPubSubHubResource)

Parameters

builder
IResourceBuilder<AzureWebPubSubHubResource>

The builder for a Web PubSub hub.

urlTemplateExpression
ReferenceExpression.ExpressionInterpolatedStringHandler

The expression to evaluate the URL template configured for the event handler.

userEventPattern
String

The user event pattern for the event handler.

systemEvents
String[]

The system events for the event handler.

authSettings
UpstreamAuthSettings

The auth settings configured for the event handler.

Returns

Applies to