Partager via


AuthorizationServiceClient Constructeurs

Définition

Surcharges

AuthorizationServiceClient(IAuthorizationService, Boolean)

Initialise une nouvelle instance de la classe AuthorizationServiceClient.

AuthorizationServiceClient(IAuthorizationService, JoinableTaskFactory, Boolean)
Obsolète.

Initialise une nouvelle instance de la classe AuthorizationServiceClient.

AuthorizationServiceClient(IAuthorizationService, Boolean)

Initialise une nouvelle instance de la 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)

Paramètres

authorizationService
IAuthorizationService

Proxy client du service d’autorisation que ce instance encapsule. Celui-ci est supprimé (s’il implémente IDisposable) lorsque celui-ci AuthorizationServiceClient est supprimé.

ownsAuthorizationService
Boolean

trueà supprimer authorizationService lorsque cette instance est supprimée ; sinonfalse.

S’applique à

AuthorizationServiceClient(IAuthorizationService, JoinableTaskFactory, Boolean)

Attention

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

Initialise une nouvelle instance de la 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)

Paramètres

authorizationService
IAuthorizationService

Proxy client du service d’autorisation que ce instance encapsule. Celui-ci est supprimé (s’il implémente IDisposable) lorsque celui-ci AuthorizationServiceClient est supprimé.

joinableTaskFactory
JoinableTaskFactory

Un moyen d’éviter les interblocages si le service d’autorisation nécessite le thread main. Ce paramètre peut être null.

ownsAuthorizationService
Boolean

trueà supprimer authorizationService lorsque cette instance est supprimée ; sinonfalse.

Attributs

S’applique à