ITempFileLinkProviderCreateFileAccessTokenAsync - метод

Create access token to a given file.

Definition

Пространство имён: Tessa.Content.Files
Сборка: Tessa (в Tessa.dll) Версия: 4.0.4
C#
Task<IContentTokenInfo> CreateFileAccessTokenAsync(
	Guid cardID,
	Guid fileID,
	string? fileTypeName = null,
	bool isVirtual = false,
	TimeSpan? lifetime = null,
	CancellationToken cancellationToken = default
)

Параметры

cardID  Guid
Card identifier.
fileID  Guid
File identifier.
fileTypeName  String  (Optional)
File type name.
isVirtual  Boolean  (Optional)
File is virtual or not.
lifetime  NullableTimeSpan  (Optional)
Desired token lifetime. May be null for "infinite" or "undefined" lifetime.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

TaskIContentTokenInfo
File content temporary access token.

См. также