KrForumPermissionsProviderResolveUserPermissionsAsync - метод
Пространство имён: Tessa.Extensions.Default.Server.ForumsСборка: Tessa.Extensions.Default.Server (в Tessa.Extensions.Default.Server.dll) Версия: 3.6.0.22
public override ValueTask<(ParticipantModel Participant, ValidationResult Result)> ResolveUserPermissionsAsync(
Guid topicID,
Guid? cardID = null,
bool checkSuperModeratorMode = false,
Dictionary<string, Object> permissionToken = null,
CancellationToken cancellationToken = default
)
Public Overrides Function ResolveUserPermissionsAsync (
topicID As Guid,
Optional cardID As Guid? = Nothing,
Optional checkSuperModeratorMode As Boolean = false,
Optional permissionToken As Dictionary(Of String, Object) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of (Participant As ParticipantModel, Result As ValidationResult))
public:
virtual ValueTask<ValueTuple<ParticipantModel^, ValidationResult^>> ResolveUserPermissionsAsync(
Guid topicID,
Nullable<Guid> cardID = nullptr,
bool checkSuperModeratorMode = false,
Dictionary<String^, Object^>^ permissionToken = nullptr,
CancellationToken cancellationToken = CancellationToken()
) override
abstract ResolveUserPermissionsAsync :
topicID : Guid *
?cardID : Nullable<Guid> *
?checkSuperModeratorMode : bool *
?permissionToken : Dictionary<string, Object> *
?cancellationToken : CancellationToken
(* Defaults:
let _cardID = defaultArg cardID null
let _checkSuperModeratorMode = defaultArg checkSuperModeratorMode false
let _permissionToken = defaultArg permissionToken null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<ValueTuple<ParticipantModel, ValidationResult>>
override ResolveUserPermissionsAsync :
topicID : Guid *
?cardID : Nullable<Guid> *
?checkSuperModeratorMode : bool *
?permissionToken : Dictionary<string, Object> *
?cancellationToken : CancellationToken
(* Defaults:
let _cardID = defaultArg cardID null
let _checkSuperModeratorMode = defaultArg checkSuperModeratorMode false
let _permissionToken = defaultArg permissionToken null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<ValueTuple<ParticipantModel, ValidationResult>>
- topicID Guid
-
- cardID NullableGuid (Optional)
-
- checkSuperModeratorMode Boolean (Optional)
-
- permissionToken DictionaryString, Object (Optional)
-
- cancellationToken CancellationToken (Optional)
-
ValueTaskValueTupleParticipantModel,
ValidationResultIForumPermissionsProviderResolveUserPermissionsAsync(Guid, NullableGuid, Boolean, DictionaryString, Object, CancellationToken) Метод вызывается в контексте расширений. Контекст можно получить, как
ForumExtensionContext.Current.CardContext