TempFileLinkProviderCreateFileAccessLinkAsync - метод

Create temporary link to access a given file.

Definition

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

Параметры

cardID  Guid
Card identifier.
fileID  Guid
File identifier.
lifetime  TimeSpan
Desired token lifetime.
fileTypeName  String  (Optional)
File type name.
isVirtual  Boolean  (Optional)
File is virtual or not.
forClient  Boolean  (Optional)
Flag for client link generation.
cardTypeID  NullableGuid  (Optional)
Card type identifier.
cardTypeName  String  (Optional)
Card type name.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

TaskString
Temporary link to access a given file.

Реализации

ITempFileLinkProviderCreateFileAccessLinkAsync(Guid, Guid, TimeSpan, String, Boolean, Boolean, NullableGuid, String, CancellationToken)

См. также