WorkplaceViewComponentHelperCreateWorkplaceViewComponentAsync - метод
Создает компонент отображения данных представления.
Пространство имён: Tessa.UI.ViewsСборка: Tessa.UI (в Tessa.UI.dll) Версия: 4.0.4
[CanBeNullAttribute]
public static ValueTask<IWorkplaceViewComponent> CreateWorkplaceViewComponentAsync(
[NotNullAttribute] ContentFactory contentFactory,
[NotNullAttribute] IDataSourceMetadata metadata,
[CanBeNullAttribute] INamedCollection<IExtensionMetadata> extensions,
[NotNullAttribute] IList<RequestParameter> parameters,
[NotNullAttribute] Dictionary<string, IEnumerable<RequestParameter>> parametersByStates,
[NotNullAttribute] IWorkplaceExtensionExecutorFactory extensionExecutorFactory,
CancellationToken cancellationToken = default
)
<CanBeNullAttribute>
Public Shared Function CreateWorkplaceViewComponentAsync (
<NotNullAttribute> contentFactory As ContentFactory,
<NotNullAttribute> metadata As IDataSourceMetadata,
<CanBeNullAttribute> extensions As INamedCollection(Of IExtensionMetadata),
<NotNullAttribute> parameters As IList(Of RequestParameter),
<NotNullAttribute> parametersByStates As Dictionary(Of String, IEnumerable(Of RequestParameter)),
<NotNullAttribute> extensionExecutorFactory As IWorkplaceExtensionExecutorFactory,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of IWorkplaceViewComponent)
public:
[CanBeNullAttribute]
static ValueTask<IWorkplaceViewComponent^> CreateWorkplaceViewComponentAsync(
[NotNullAttribute] ContentFactory^ contentFactory,
[NotNullAttribute] IDataSourceMetadata^ metadata,
[CanBeNullAttribute] INamedCollection<IExtensionMetadata^>^ extensions,
[NotNullAttribute] IList<RequestParameter^>^ parameters,
[NotNullAttribute] Dictionary<String^, IEnumerable<RequestParameter^>^>^ parametersByStates,
[NotNullAttribute] IWorkplaceExtensionExecutorFactory^ extensionExecutorFactory,
CancellationToken cancellationToken = CancellationToken()
)
[<CanBeNullAttribute>]
static member CreateWorkplaceViewComponentAsync :
[<NotNullAttribute>] contentFactory : ContentFactory *
[<NotNullAttribute>] metadata : IDataSourceMetadata *
[<CanBeNullAttribute>] extensions : INamedCollection<IExtensionMetadata> *
[<NotNullAttribute>] parameters : IList<RequestParameter> *
[<NotNullAttribute>] parametersByStates : Dictionary<string, IEnumerable<RequestParameter>> *
[<NotNullAttribute>] extensionExecutorFactory : IWorkplaceExtensionExecutorFactory *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<IWorkplaceViewComponent>
- contentFactory ContentFactory
-
Фабрика создания содержимого.
- metadata IDataSourceMetadata
-
Метаданные источника данных.
- extensions INamedCollectionIExtensionMetadata
-
Список расширений.
- parameters IListRequestParameter
-
Список параметров.
- parametersByStates DictionaryString, IEnumerableRequestParameter
-
Параметры по состояниям.
- extensionExecutorFactory IWorkplaceExtensionExecutorFactory
-
Фабрика создания исполнителя расширений.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
ValueTaskIWorkplaceViewComponent
Задача на создание компонента отображения данных представления.