InitializationExtensionHelperApplyWorkplacePolicyAsync(IListIWorkplaceMetadata, IServerInitializationExtensionContext, IWorkplaceWalkerFactory, WorkplaceMetadataSerializer, CancellationToken) - метод
Осуществляет фильтрацию рабочих мест в соответствии с политикой доступности.
Пространство имён: Tessa.Extensions.Platform.Shared.InitializationСборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
public static ValueTask ApplyWorkplacePolicyAsync(
IList<IWorkplaceMetadata> workplaces,
IServerInitializationExtensionContext extensionContext,
IWorkplaceWalkerFactory walkerFactory,
WorkplaceMetadataSerializer workplaceSerializer,
CancellationToken cancellationToken = default
)
Public Shared Function ApplyWorkplacePolicyAsync (
workplaces As IList(Of IWorkplaceMetadata),
extensionContext As IServerInitializationExtensionContext,
walkerFactory As IWorkplaceWalkerFactory,
workplaceSerializer As WorkplaceMetadataSerializer,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask
public:
static ValueTask ApplyWorkplacePolicyAsync(
IList<IWorkplaceMetadata^>^ workplaces,
IServerInitializationExtensionContext^ extensionContext,
IWorkplaceWalkerFactory^ walkerFactory,
WorkplaceMetadataSerializer^ workplaceSerializer,
CancellationToken cancellationToken = CancellationToken()
)
static member ApplyWorkplacePolicyAsync :
workplaces : IList<IWorkplaceMetadata> *
extensionContext : IServerInitializationExtensionContext *
walkerFactory : IWorkplaceWalkerFactory *
workplaceSerializer : WorkplaceMetadataSerializer *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
- workplaces IListIWorkplaceMetadata
- Список метаданных рабочих мест.
- extensionContext IServerInitializationExtensionContext
- Контекст расширений для инициализации приложений со стороны сервера.
- walkerFactory IWorkplaceWalkerFactory
- Фабрика для создания объекта, осуществляющего обход дерева метаданных рабочего места в соответствии с политикой доступности.
- workplaceSerializer WorkplaceMetadataSerializer
- Сериализатор метаданных рабочих мест.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
ValueTaskАсинхронная задача.