Aracılığıyla paylaş


HubConnectionBuilderExtensions.ConfigureLogging Yöntem

Tanım

Sağlanan ILoggingBuilderöğesini yapılandırmak için bir temsilci ekler. Bu, birden çok kez çağrılabilir.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ ConfigureLogging(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, Action<Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder ConfigureLogging (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, Action<Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function ConfigureLogging (hubConnectionBuilder As IHubConnectionBuilder, configureLogging As Action(Of ILoggingBuilder)) As IHubConnectionBuilder

Parametreler

hubConnectionBuilder
IHubConnectionBuilder

IHubConnectionBuilder yapılandırılır.

configureLogging
Action<ILoggingBuilder>

öğesini yapılandıran ILoggingBuildertemsilci.

Döndürülenler

Zincirleme için aynı IHubConnectionBuilder örneği.

Şunlara uygulanır