다음을 통해 공유


WebSocketsDependencyInjectionExtensions.AddWebSockets 메서드

정의

WebSockets 구성을 추가하기 위한 IServiceCollection 확장 메서드입니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddWebSockets(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::AspNetCore::Builder::WebSocketOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddWebSockets (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Builder.WebSocketOptions> configure);
static member AddWebSockets : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Builder.WebSocketOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddWebSockets (services As IServiceCollection, configure As Action(Of WebSocketOptions)) As IServiceCollection

매개 변수

services
IServiceCollection

WebSockets 특정 구성을 추가할 서비스 컬렉션입니다.

configure
Action<WebSocketOptions>

를 설정 WebSocketOptions하기 위한 구성 콜백입니다.

반환

적용 대상