AuthorizationServiceClient Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AuthorizationServiceClient(IAuthorizationService, Boolean) |
Initializes a new instance of the AuthorizationServiceClient class. |
AuthorizationServiceClient(IAuthorizationService, JoinableTaskFactory, Boolean) |
Obsolete.
Initializes a new instance of the AuthorizationServiceClient class. |
AuthorizationServiceClient(IAuthorizationService, Boolean)
Initializes a new instance of the AuthorizationServiceClient class.
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)
Parameters
- authorizationService
- IAuthorizationService
The client proxy of the authorization service that this instance will wrap. This will be disposed (if it implements IDisposable) when this AuthorizationServiceClient is disposed.
- ownsAuthorizationService
- Boolean
true
to dispose of authorizationService
when this instance is disposed; otherwise false
.
Applies to
AuthorizationServiceClient(IAuthorizationService, JoinableTaskFactory, Boolean)
Caution
Use the overload that does not accept a JoinableTaskFactory instead. This overload will be removed in a future release.
Initializes a new instance of the AuthorizationServiceClient class.
[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)
Parameters
- authorizationService
- IAuthorizationService
The client proxy of the authorization service that this instance will wrap. This will be disposed (if it implements IDisposable) when this AuthorizationServiceClient is disposed.
- joinableTaskFactory
- JoinableTaskFactory
A means to avoid deadlocks if the authorization service requires the main thread. May be null.
- ownsAuthorizationService
- Boolean
true
to dispose of authorizationService
when this instance is disposed; otherwise false
.
- Attributes