KrForumPermissionsProviderGetAvailableTopicsAsync - метод
Пространство имён: Tessa.Extensions.Default.Server.ForumsСборка: Tessa.Extensions.Default.Server (в Tessa.Extensions.Default.Server.dll) Версия: 3.6.0.22
public override ValueTask<IReadOnlyCollection<TopicModel>> GetAvailableTopicsAsync(
Guid cardID,
bool isSuperModeratorModeEnabled,
Func<Guid, bool, CancellationToken, ValueTask<IReadOnlyCollection<TopicModel>>> getCardTopicsAsync,
Func<Guid, CancellationToken, ValueTask<IReadOnlyCollection<TopicModel>>> getUserTopicsAsync,
CancellationToken cancellationToken = default
)
Public Overrides Function GetAvailableTopicsAsync (
cardID As Guid,
isSuperModeratorModeEnabled As Boolean,
getCardTopicsAsync As Func(Of Guid, Boolean, CancellationToken, ValueTask(Of IReadOnlyCollection(Of TopicModel))),
getUserTopicsAsync As Func(Of Guid, CancellationToken, ValueTask(Of IReadOnlyCollection(Of TopicModel))),
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of IReadOnlyCollection(Of TopicModel))
public:
virtual ValueTask<IReadOnlyCollection<TopicModel^>^> GetAvailableTopicsAsync(
Guid cardID,
bool isSuperModeratorModeEnabled,
Func<Guid, bool, CancellationToken, ValueTask<IReadOnlyCollection<TopicModel^>^>>^ getCardTopicsAsync,
Func<Guid, CancellationToken, ValueTask<IReadOnlyCollection<TopicModel^>^>>^ getUserTopicsAsync,
CancellationToken cancellationToken = CancellationToken()
) override
abstract GetAvailableTopicsAsync :
cardID : Guid *
isSuperModeratorModeEnabled : bool *
getCardTopicsAsync : Func<Guid, bool, CancellationToken, ValueTask<IReadOnlyCollection<TopicModel>>> *
getUserTopicsAsync : Func<Guid, CancellationToken, ValueTask<IReadOnlyCollection<TopicModel>>> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<IReadOnlyCollection<TopicModel>>
override GetAvailableTopicsAsync :
cardID : Guid *
isSuperModeratorModeEnabled : bool *
getCardTopicsAsync : Func<Guid, bool, CancellationToken, ValueTask<IReadOnlyCollection<TopicModel>>> *
getUserTopicsAsync : Func<Guid, CancellationToken, ValueTask<IReadOnlyCollection<TopicModel>>> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<IReadOnlyCollection<TopicModel>>
- cardID Guid
-
- isSuperModeratorModeEnabled Boolean
-
- getCardTopicsAsync FuncGuid, Boolean, CancellationToken, ValueTaskIReadOnlyCollectionTopicModel
-
- getUserTopicsAsync FuncGuid, CancellationToken, ValueTaskIReadOnlyCollectionTopicModel
-
- cancellationToken CancellationToken (Optional)
-
ValueTaskIReadOnlyCollectionTopicModelIForumPermissionsProviderGetAvailableTopicsAsync(Guid, Boolean, FuncGuid, Boolean, CancellationToken, ValueTaskIReadOnlyCollectionTopicModel, FuncGuid, CancellationToken, ValueTaskIReadOnlyCollectionTopicModel, CancellationToken) Метод вызывается в контексте расширений. Контекст можно получить, как
ForumExtensionContext.Current.CardContext