RemoteServiceBroker.SetAuthorizationService Method

Definition

Overloads

SetAuthorizationService(IAuthorizationService, JoinableTaskFactory)
Obsolete.

Sets the authorization service to use to obtain the default value for ClientCredentials for all service requests that do not explicitly provide it.

SetAuthorizationService(IAuthorizationService)

Sets the authorization service to use to obtain the default value for ClientCredentials for all service requests that do not explicitly provide it.

SetAuthorizationService(IAuthorizationService, JoinableTaskFactory)

Caution

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

Sets the authorization service to use to obtain the default value for ClientCredentials for all service requests that do not explicitly provide it.

public:
 void SetAuthorizationService(Microsoft::ServiceHub::Framework::Services::IAuthorizationService ^ authorizationService, Microsoft::VisualStudio::Threading::JoinableTaskFactory ^ joinableTaskFactory);
[System.Obsolete("Use the overload that does not accept a JoinableTaskFactory instead. This overload will be removed in a future release.", true)]
public void SetAuthorizationService (Microsoft.ServiceHub.Framework.Services.IAuthorizationService? authorizationService, Microsoft.VisualStudio.Threading.JoinableTaskFactory? joinableTaskFactory);
[<System.Obsolete("Use the overload that does not accept a JoinableTaskFactory instead. This overload will be removed in a future release.", true)>]
member this.SetAuthorizationService : Microsoft.ServiceHub.Framework.Services.IAuthorizationService * Microsoft.VisualStudio.Threading.JoinableTaskFactory -> unit
Public Sub SetAuthorizationService (authorizationService As IAuthorizationService, joinableTaskFactory As JoinableTaskFactory)

Parameters

authorizationService
IAuthorizationService

The authorization service. May be null to clear a previously set value.

joinableTaskFactory
JoinableTaskFactory

A means to avoid deadlocks if the authorization service requires the main thread. May be null.

Attributes

Remarks

This method is free threaded, but not thread-safe. It should not be called concurrently with itself.

Applies to

SetAuthorizationService(IAuthorizationService)

Sets the authorization service to use to obtain the default value for ClientCredentials for all service requests that do not explicitly provide it.

public:
 void SetAuthorizationService(Microsoft::ServiceHub::Framework::Services::IAuthorizationService ^ authorizationService);
public void SetAuthorizationService (Microsoft.ServiceHub.Framework.Services.IAuthorizationService? authorizationService);
member this.SetAuthorizationService : Microsoft.ServiceHub.Framework.Services.IAuthorizationService -> unit
Public Sub SetAuthorizationService (authorizationService As IAuthorizationService)

Parameters

authorizationService
IAuthorizationService

The authorization service. May be null to clear a previously set value.

Remarks

This method is free threaded, but not thread-safe. It should not be called concurrently with itself.

Applies to