WorkplaceInitializationHelperApplyWorkplacePolicyAsync(IListWorkplaceModel, IServerInitializationExtensionContext, IWorkplaceWalkerFactory, IWorkplaceInterpreter, WorkplaceMetadataSerializer, IIndentationStrategy, IConverterIJsonWorkplaceMetadata, IWorkplaceMetadata, CancellationToken) - метод
Осуществляет фильтрацию рабочих мест в соответствии с политикой доступности.
Пространство имён: Tessa.Views.WorkplacesСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public static ValueTask ApplyWorkplacePolicyAsync(
IList<WorkplaceModel> workplaceModels,
IServerInitializationExtensionContext extensionContext,
IWorkplaceWalkerFactory walkerFactory,
IWorkplaceInterpreter workplaceInterpreter,
WorkplaceMetadataSerializer workplaceSerializer,
IIndentationStrategy indentationStrategy,
IConverter<IJsonWorkplaceMetadata, IWorkplaceMetadata> jsonWorkplaceConverter,
CancellationToken cancellationToken = default
)
Public Shared Function ApplyWorkplacePolicyAsync (
workplaceModels As IList(Of WorkplaceModel),
extensionContext As IServerInitializationExtensionContext,
walkerFactory As IWorkplaceWalkerFactory,
workplaceInterpreter As IWorkplaceInterpreter,
workplaceSerializer As WorkplaceMetadataSerializer,
indentationStrategy As IIndentationStrategy,
jsonWorkplaceConverter As IConverter(Of IJsonWorkplaceMetadata, IWorkplaceMetadata),
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask
public:
static ValueTask ApplyWorkplacePolicyAsync(
IList<WorkplaceModel^>^ workplaceModels,
IServerInitializationExtensionContext^ extensionContext,
IWorkplaceWalkerFactory^ walkerFactory,
IWorkplaceInterpreter^ workplaceInterpreter,
WorkplaceMetadataSerializer^ workplaceSerializer,
IIndentationStrategy^ indentationStrategy,
IConverter<IJsonWorkplaceMetadata^, IWorkplaceMetadata^>^ jsonWorkplaceConverter,
CancellationToken cancellationToken = CancellationToken()
)
static member ApplyWorkplacePolicyAsync :
workplaceModels : IList<WorkplaceModel> *
extensionContext : IServerInitializationExtensionContext *
walkerFactory : IWorkplaceWalkerFactory *
workplaceInterpreter : IWorkplaceInterpreter *
workplaceSerializer : WorkplaceMetadataSerializer *
indentationStrategy : IIndentationStrategy *
jsonWorkplaceConverter : IConverter<IJsonWorkplaceMetadata, IWorkplaceMetadata> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
- workplaceModels IListWorkplaceModel
- Список моделей рабочих мест.
- extensionContext IServerInitializationExtensionContext
- Контекст расширений для инициализации приложений со стороны сервера.
- walkerFactory IWorkplaceWalkerFactory
- Фабрика для создания объекта, осуществляющего обход дерева метаданных рабочего места в соответствии с политикой доступности.
- workplaceInterpreter IWorkplaceInterpreter
- Интерпретатор рабочих мест.
- workplaceSerializer WorkplaceMetadataSerializer
- Сериализатор метаданных рабочих мест.
- indentationStrategy IIndentationStrategy
- Стратегия выравнивания текста.
- jsonWorkplaceConverter IConverterIJsonWorkplaceMetadata, IWorkplaceMetadata
- Конвертер метаданных рабочих мест из JSON-формата в формат объектной модели.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
ValueTaskАсинхронная задача.