Sdílet prostřednictvím


AuthorizationServiceClient Konstruktory

Definice

Přetížení

AuthorizationServiceClient(IAuthorizationService, Boolean)

Inicializuje novou instanci AuthorizationServiceClient třídy .

AuthorizationServiceClient(IAuthorizationService, JoinableTaskFactory, Boolean)
Zastaralé.

Inicializuje novou instanci AuthorizationServiceClient třídy .

AuthorizationServiceClient(IAuthorizationService, Boolean)

Inicializuje novou instanci AuthorizationServiceClient třídy .

public AuthorizationServiceClient (Microsoft.ServiceHub.Framework.Services.IAuthorizationService authorizationService, bool ownsAuthorizationService = true);
new Microsoft.ServiceHub.Framework.Services.AuthorizationServiceClient : Microsoft.ServiceHub.Framework.Services.IAuthorizationService * bool -> Microsoft.ServiceHub.Framework.Services.AuthorizationServiceClient
Public Sub New (authorizationService As IAuthorizationService, Optional ownsAuthorizationService As Boolean = true)

Parametry

authorizationService
IAuthorizationService

Proxy klienta autorizační služby, kterou tato instance zabalí. Tato položka bude odstraněna (pokud implementuje IDisposable) při AuthorizationServiceClient jeho odstranění.

ownsAuthorizationService
Boolean

true vyřaďte authorizationService , když je tato instance odstraněna; jinak false.

Platí pro

AuthorizationServiceClient(IAuthorizationService, JoinableTaskFactory, Boolean)

Upozornění

Use the overload that does not accept a JoinableTaskFactory instead. This overload will be removed in a future release.

Inicializuje novou instanci AuthorizationServiceClient třídy .

[System.Obsolete("Use the overload that does not accept a JoinableTaskFactory instead. This overload will be removed in a future release.", true)]
public AuthorizationServiceClient (Microsoft.ServiceHub.Framework.Services.IAuthorizationService authorizationService, Microsoft.VisualStudio.Threading.JoinableTaskFactory? joinableTaskFactory, bool ownsAuthorizationService = true);
[<System.Obsolete("Use the overload that does not accept a JoinableTaskFactory instead. This overload will be removed in a future release.", true)>]
new Microsoft.ServiceHub.Framework.Services.AuthorizationServiceClient : Microsoft.ServiceHub.Framework.Services.IAuthorizationService * Microsoft.VisualStudio.Threading.JoinableTaskFactory * bool -> Microsoft.ServiceHub.Framework.Services.AuthorizationServiceClient
Public Sub New (authorizationService As IAuthorizationService, joinableTaskFactory As JoinableTaskFactory, Optional ownsAuthorizationService As Boolean = true)

Parametry

authorizationService
IAuthorizationService

Proxy klienta autorizační služby, kterou tato instance zabalí. Tato položka bude odstraněna (pokud implementuje IDisposable) při AuthorizationServiceClient jeho odstranění.

joinableTaskFactory
JoinableTaskFactory

Prostředek, jak se vyhnout vzájemnému zablokování, pokud autorizační služba vyžaduje hlavní vlákno. Může mít hodnotu null.

ownsAuthorizationService
Boolean

true vyřaďte authorizationService , když je tato instance odstraněna; jinak false.

Atributy

Platí pro