AuthorizationServiceClient Construtores

Definição

Sobrecargas

AuthorizationServiceClient(IAuthorizationService, Boolean)

Inicializa uma nova instância da classe AuthorizationServiceClient.

AuthorizationServiceClient(IAuthorizationService, JoinableTaskFactory, Boolean)
Obsoleto.

Inicializa uma nova instância da classe AuthorizationServiceClient.

AuthorizationServiceClient(IAuthorizationService, Boolean)

Inicializa uma nova instância da classe AuthorizationServiceClient.

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)

Parâmetros

authorizationService
IAuthorizationService

O proxy do cliente do serviço de autorização que essa instância encapsulará. Isso será descartado (se implementar IDisposable) quando isso AuthorizationServiceClient for descartado.

ownsAuthorizationService
Boolean

true para descartar authorizationService quando essa instância for descartada; caso contrário false, .

Aplica-se a

AuthorizationServiceClient(IAuthorizationService, JoinableTaskFactory, Boolean)

Cuidado

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

Inicializa uma nova instância da classe AuthorizationServiceClient.

[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)

Parâmetros

authorizationService
IAuthorizationService

O proxy do cliente do serviço de autorização que essa instância encapsulará. Isso será descartado (se implementar IDisposable) quando isso AuthorizationServiceClient for descartado.

joinableTaskFactory
JoinableTaskFactory

Um meio para evitar deadlocks se o serviço de autorização exigir o thread main. Pode ser nulo.

ownsAuthorizationService
Boolean

true para descartar authorizationService quando essa instância for descartada; caso contrário false, .

Atributos

Aplica-se a