IWidgetTemplatesServiceGetTemplateAsync - метод

Retrieves the widget template by template identifier.

Definition

Пространство имён: Tessa.Dashboards.WidgetTemplates
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
Task<(WidgetTemplateData Template, DashboardToken? Token)> GetTemplateAsync(
	Guid templateID,
	DashboardType dashboardType,
	DashboardToken? token = null,
	CancellationToken cancellationToken = default
)

Параметры

templateID  Guid
Widget template identifier.
dashboardType  DashboardType
Dashboard types.
token  DashboardToken  (Optional)
Represents a secure, serializable token used for widgets access control.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

Возвращаемое значение

TaskValueTupleWidgetTemplateData, DashboardToken
Tuple with the found WidgetTemplateData object, if any, and an optional updated DashboardToken.

См. также