Udostępnij za pośrednictwem


ConnectionBuilderExtensions.Run Metoda

Definicja

Dodaj daną middleware do połączenia.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Connections::IConnectionBuilder ^ Run(Microsoft::AspNetCore::Connections::IConnectionBuilder ^ connectionBuilder, Func<Microsoft::AspNetCore::Connections::ConnectionContext ^, System::Threading::Tasks::Task ^> ^ middleware);
public static Microsoft.AspNetCore.Connections.IConnectionBuilder Run (this Microsoft.AspNetCore.Connections.IConnectionBuilder connectionBuilder, Func<Microsoft.AspNetCore.Connections.ConnectionContext,System.Threading.Tasks.Task> middleware);
static member Run : Microsoft.AspNetCore.Connections.IConnectionBuilder * Func<Microsoft.AspNetCore.Connections.ConnectionContext, System.Threading.Tasks.Task> -> Microsoft.AspNetCore.Connections.IConnectionBuilder
<Extension()>
Public Function Run (connectionBuilder As IConnectionBuilder, middleware As Func(Of ConnectionContext, Task)) As IConnectionBuilder

Parametry

connectionBuilder
IConnectionBuilder

Element IConnectionBuilder.

middleware
Func<ConnectionContext,Task>

Oprogramowanie pośredniczące do dodania do pliku IConnectionBuilder.

Zwraca

Element IConnectionBuilder.

Dotyczy