Share via


CircuitHandler.CreateInboundActivityHandler Method

Definition

Creates a handler that gets invoked when inbound activity on the circuit causes an asynchronous task to be dispatched on the server.

public virtual Func<Microsoft.AspNetCore.Components.Server.Circuits.CircuitInboundActivityContext,System.Threading.Tasks.Task> CreateInboundActivityHandler (Func<Microsoft.AspNetCore.Components.Server.Circuits.CircuitInboundActivityContext,System.Threading.Tasks.Task> next);
abstract member CreateInboundActivityHandler : Func<Microsoft.AspNetCore.Components.Server.Circuits.CircuitInboundActivityContext, System.Threading.Tasks.Task> -> Func<Microsoft.AspNetCore.Components.Server.Circuits.CircuitInboundActivityContext, System.Threading.Tasks.Task>
override this.CreateInboundActivityHandler : Func<Microsoft.AspNetCore.Components.Server.Circuits.CircuitInboundActivityContext, System.Threading.Tasks.Task> -> Func<Microsoft.AspNetCore.Components.Server.Circuits.CircuitInboundActivityContext, System.Threading.Tasks.Task>
Public Overridable Function CreateInboundActivityHandler (next As Func(Of CircuitInboundActivityContext, Task)) As Func(Of CircuitInboundActivityContext, Task)

Parameters

next
Func<CircuitInboundActivityContext,Task>

The next handler to invoke.

Returns

A handler function that returns a Task that completes when the activity has finished.

Applies to