SaasMailFileLoaderServiceTryLoadContentAsync - метод
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.
Пространство имён: Tessa.Extensions.Default.Chronos.SaaSСборка: Tessa.Extensions.Default.Chronos (в Tessa.Extensions.Default.Chronos.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
public Task<CardGetFileContentResponse?> TryLoadContentAsync(
Guid? cardID,
Guid? cardTypeID,
string? cardTypeName,
MailFile file,
Func<Stream, CancellationToken, ValueTask> processContentActionAsync,
Guid? userID = null,
CancellationToken cancellationToken = default
)
Public Function TryLoadContentAsync (
cardID As Guid?,
cardTypeID As Guid?,
cardTypeName As String,
file As MailFile,
processContentActionAsync As Func(Of Stream, CancellationToken, ValueTask),
Optional userID As Guid? = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of CardGetFileContentResponse)
public:
virtual Task<CardGetFileContentResponse^>^ TryLoadContentAsync(
Nullable<Guid> cardID,
Nullable<Guid> cardTypeID,
String^ cardTypeName,
MailFile^ file,
Func<Stream^, CancellationToken, ValueTask>^ processContentActionAsync,
Nullable<Guid> userID = nullptr,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract TryLoadContentAsync :
cardID : Nullable<Guid> *
cardTypeID : Nullable<Guid> *
cardTypeName : string *
file : MailFile *
processContentActionAsync : Func<Stream, CancellationToken, ValueTask> *
?userID : Nullable<Guid> *
?cancellationToken : CancellationToken
(* Defaults:
let _userID = defaultArg userID null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<CardGetFileContentResponse>
override TryLoadContentAsync :
cardID : Nullable<Guid> *
cardTypeID : Nullable<Guid> *
cardTypeName : string *
file : MailFile *
processContentActionAsync : Func<Stream, CancellationToken, ValueTask> *
?userID : Nullable<Guid> *
?cancellationToken : CancellationToken
(* Defaults:
let _userID = defaultArg userID null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<CardGetFileContentResponse>
- 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.
TaskCardGetFileContentResponseCardGetFileContentResponse if content is ready and
in other case.
IMailFileLoaderServiceTryLoadContentAsync(NullableGuid, NullableGuid, String, MailFile, FuncStream, CancellationToken, ValueTask, NullableGuid, CancellationToken)