다음을 통해 공유


ConnectionBuilderExtensions.Run 메서드

정의

지정된 middleware 를 연결에 추가합니다.

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

매개 변수

middleware
Func<ConnectionContext,Task>

에 추가할 미들웨어입니다 IConnectionBuilder.

반환

IConnectionBuilder

적용 대상