CardStreamServerStoreComponentStoreAsync(Stream, ICardMetadata, ISession, CardServiceType, CancellationToken) - метод
Сохраняет карточку с контентом файлов, которые заданы списком объектов
[Tessa.Cards.ICardFileContentProvider].
Пространство имён: Tessa.Cards.ComponentModelСборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
public Task<CardStoreResponse> StoreAsync(
Stream cardStream,
ICardMetadata cardMetadata,
ISession session,
CardServiceType serviceType = CardServiceType.Default,
CancellationToken cancellationToken = default
)
Public Function StoreAsync (
cardStream As Stream,
cardMetadata As ICardMetadata,
session As ISession,
Optional serviceType As CardServiceType = CardServiceType.Default,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of CardStoreResponse)
public:
virtual Task<CardStoreResponse^>^ StoreAsync(
Stream^ cardStream,
ICardMetadata^ cardMetadata,
ISession^ session,
CardServiceType serviceType = CardServiceType::Default,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract StoreAsync :
cardStream : Stream *
cardMetadata : ICardMetadata *
session : ISession *
?serviceType : CardServiceType *
?cancellationToken : CancellationToken
(* Defaults:
let _serviceType = defaultArg serviceType CardServiceType.Default
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<CardStoreResponse>
override StoreAsync :
cardStream : Stream *
cardMetadata : ICardMetadata *
session : ISession *
?serviceType : CardServiceType *
?cancellationToken : CancellationToken
(* Defaults:
let _serviceType = defaultArg serviceType CardServiceType.Default
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<CardStoreResponse>
- cardStream Stream
-
- cardMetadata ICardMetadata
- Метаинформация по типам карточек.
- session ISession
- Сессия с пользователем, выполняющим сохранение карточки.
- serviceType CardServiceType (Optional)
-
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
TaskCardStoreResponseОтвет на запрос по сохранению карточки.
ICardStreamServerStoreComponentStoreAsync(Stream, ICardMetadata, ISession, CardServiceType, CancellationToken)