public static Task AddGetContentToActionHistorySafeAsync(
this IActionHistoryStrategy actionHistoryStrategy,
ISessionHostInfoProvider hostInfoProvider,
ISession session,
ICardGetStrategy cardGetStrategy,
ILogger logger,
string handlerType,
string contentID,
string token,
string? message,
IContentTokenInfo? tokenInfo = null,
Guid? userID = null,
Guid? fileID = null,
string? fileName = null,
Guid? fileVersionID = null,
Guid? cardID = null,
CancellationToken cancellationToken = default
)
<ExtensionAttribute>
Public Shared Function AddGetContentToActionHistorySafeAsync (
actionHistoryStrategy As IActionHistoryStrategy,
hostInfoProvider As ISessionHostInfoProvider,
session As ISession,
cardGetStrategy As ICardGetStrategy,
logger As ILogger,
handlerType As String,
contentID As String,
token As String,
message As String,
Optional tokenInfo As IContentTokenInfo = Nothing,
Optional userID As Guid? = Nothing,
Optional fileID As Guid? = Nothing,
Optional fileName As String = Nothing,
Optional fileVersionID As Guid? = Nothing,
Optional cardID As Guid? = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task
public:
[ExtensionAttribute]
static Task^ AddGetContentToActionHistorySafeAsync(
IActionHistoryStrategy^ actionHistoryStrategy,
ISessionHostInfoProvider^ hostInfoProvider,
ISession^ session,
ICardGetStrategy^ cardGetStrategy,
ILogger^ logger,
String^ handlerType,
String^ contentID,
String^ token,
String^ message,
IContentTokenInfo^ tokenInfo = nullptr,
Nullable<Guid> userID = nullptr,
Nullable<Guid> fileID = nullptr,
String^ fileName = nullptr,
Nullable<Guid> fileVersionID = nullptr,
Nullable<Guid> cardID = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
[<ExtensionAttribute>]
static member AddGetContentToActionHistorySafeAsync :
actionHistoryStrategy : IActionHistoryStrategy *
hostInfoProvider : ISessionHostInfoProvider *
session : ISession *
cardGetStrategy : ICardGetStrategy *
logger : ILogger *
handlerType : string *
contentID : string *
token : string *
message : string *
?tokenInfo : IContentTokenInfo *
?userID : Nullable<Guid> *
?fileID : Nullable<Guid> *
?fileName : string *
?fileVersionID : Nullable<Guid> *
?cardID : Nullable<Guid> *
?cancellationToken : CancellationToken
(* Defaults:
let _tokenInfo = defaultArg tokenInfo null
let _userID = defaultArg userID null
let _fileID = defaultArg fileID null
let _fileName = defaultArg fileName null
let _fileVersionID = defaultArg fileVersionID null
let _cardID = defaultArg cardID null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task
Стратегия управления историей действий карточки и других действий в системе.
Реализация должна регистрироваться в Unity как синглтон с уникальным именем (nameof от класса).
Порядок выполнения определяется атрибутом OrderAttribute на классе-реализации интерфейса. Если атрибут отсутствует - подразумевается 0. Если несколько зависимостей имеют одинаковый порядок, то они сортируются по краткому имени типа (без пространства имён), а при его совпадении - по квалифицированному имени типа (с учётом пространства имён и названия сборки).