次の方法で共有


SignalRAppBuilderExtensions.UseSignalR メソッド

定義

注意事項

This method is obsolete and will be removed in a future version. The recommended alternative is to use MapHub<THub> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).

SignalR を要求実行パイプラインに IApplicationBuilder 追加します。

このメソッドは互換性のために残されていますが、今後のバージョンでは削除される予定です。 代わりに、Microsoft.AspNetCore.Builder.UseEndpoints(...) 内で MapHub<THub> を使用することをお勧めします。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseSignalR(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Action<Microsoft::AspNetCore::SignalR::HubRouteBuilder ^> ^ configure);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseSignalR (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Action<Microsoft.AspNetCore.SignalR.HubRouteBuilder> configure);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is to use MapHub<THub> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).")]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseSignalR (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Action<Microsoft.AspNetCore.SignalR.HubRouteBuilder> configure);
static member UseSignalR : Microsoft.AspNetCore.Builder.IApplicationBuilder * Action<Microsoft.AspNetCore.SignalR.HubRouteBuilder> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is to use MapHub<THub> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).")>]
static member UseSignalR : Microsoft.AspNetCore.Builder.IApplicationBuilder * Action<Microsoft.AspNetCore.SignalR.HubRouteBuilder> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseSignalR (app As IApplicationBuilder, configure As Action(Of HubRouteBuilder)) As IApplicationBuilder

パラメーター

configure
Action<HubRouteBuilder>

ハブ ルートを構成するためのコールバック。

戻り値

チェーン用の IApplicationBuilder の同じインスタンス。

属性

適用対象