MailFileLoaderServiceTryLoadContentAsync - метод

Try to load given file content. If successful content stream will be provided in callback function. If content is not ready - response will be null.

Definition

Пространство имён: Tessa.Extensions.Default.Server.Plugins.Notices
Сборка: Tessa.Extensions.Default.Server (в Tessa.Extensions.Default.Server.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public Task<CardGetFileContentResponse?> TryLoadContentAsync(
	Guid? cardID,
	Guid? cardTypeID,
	string? cardTypeName,
	MailFile file,
	Func<Stream, CancellationToken, ValueTask> processContentActionAsync,
	Guid? userID = null,
	CancellationToken cancellationToken = default
)

Параметры

cardID  NullableGuid
Card identifier.
cardTypeID  NullableGuid
Card type identifier.
cardTypeName  String
Card type name.
file  MailFile
Файл, приложенный к письму.
processContentActionAsync  FuncStream, CancellationToken, ValueTask
Content provider callback.
userID  NullableGuid  (Optional)
Optional user identifier.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

TaskCardGetFileContentResponse
CardGetFileContentResponse if content is ready and in other case.

Реализации

IMailFileLoaderServiceTryLoadContentAsync(NullableGuid, NullableGuid, String, MailFile, FuncStream, CancellationToken, ValueTask, NullableGuid, CancellationToken)

См. также