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