RemoteServiceBroker.SetAuthorizationService 方法

定义

重载

SetAuthorizationService(IAuthorizationService, JoinableTaskFactory)
已过时.

将授权服务设置为用于获取未显式提供的所有服务请求的默认值 ClientCredentials

SetAuthorizationService(IAuthorizationService)

将授权服务设置为用于获取未显式提供的所有服务请求的默认值 ClientCredentials

SetAuthorizationService(IAuthorizationService, JoinableTaskFactory)

注意

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

将授权服务设置为用于获取未显式提供的所有服务请求的默认值 ClientCredentials

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)

参数

authorizationService
IAuthorizationService

授权服务。 可以 null 清除以前设置的值。

joinableTaskFactory
JoinableTaskFactory

如果授权服务需要main线程,则避免死锁。 可能为 null。

属性

注解

此方法是自由线程的,但不是线程安全的。 不应与自身同时调用它。

适用于

SetAuthorizationService(IAuthorizationService)

将授权服务设置为用于获取未显式提供的所有服务请求的默认值 ClientCredentials

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)

参数

authorizationService
IAuthorizationService

授权服务。 可以 null 清除以前设置的值。

注解

此方法是自由线程的,但不是线程安全的。 不应与自身同时调用它。

适用于