KrForumPermissionsProviderGetEditPermissionsInfoAsync - метод
Пространство имён: Tessa.Extensions.Default.Server.ForumsСборка: Tessa.Extensions.Default.Server (в Tessa.Extensions.Default.Server.dll) Версия: 3.6.0.22
public override ValueTask<(Dictionary<string, Object> PermissionsToken, bool CanEditMyMessages, bool CanEditAllMessages, ValidationResult ValidationResult)> GetEditPermissionsInfoAsync(
Guid topicID,
Guid? cardID = null,
bool checkMyMessages = false,
bool checkAllMessages = false,
Dictionary<string, Object> permissionsToken = null,
CancellationToken cancellationToken = default
)
Public Overrides Function GetEditPermissionsInfoAsync (
topicID As Guid,
Optional cardID As Guid? = Nothing,
Optional checkMyMessages As Boolean = false,
Optional checkAllMessages As Boolean = false,
Optional permissionsToken As Dictionary(Of String, Object) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of (PermissionsToken As Dictionary(Of String, Object), CanEditMyMessages As Boolean, CanEditAllMessages As Boolean, ValidationResult As ValidationResult))
public:
virtual ValueTask<ValueTuple<Dictionary<String^, Object^>^, bool, bool, ValidationResult^>> GetEditPermissionsInfoAsync(
Guid topicID,
Nullable<Guid> cardID = nullptr,
bool checkMyMessages = false,
bool checkAllMessages = false,
Dictionary<String^, Object^>^ permissionsToken = nullptr,
CancellationToken cancellationToken = CancellationToken()
) override
abstract GetEditPermissionsInfoAsync :
topicID : Guid *
?cardID : Nullable<Guid> *
?checkMyMessages : bool *
?checkAllMessages : bool *
?permissionsToken : Dictionary<string, Object> *
?cancellationToken : CancellationToken
(* Defaults:
let _cardID = defaultArg cardID null
let _checkMyMessages = defaultArg checkMyMessages false
let _checkAllMessages = defaultArg checkAllMessages false
let _permissionsToken = defaultArg permissionsToken null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<ValueTuple<Dictionary<string, Object>, bool, bool, ValidationResult>>
override GetEditPermissionsInfoAsync :
topicID : Guid *
?cardID : Nullable<Guid> *
?checkMyMessages : bool *
?checkAllMessages : bool *
?permissionsToken : Dictionary<string, Object> *
?cancellationToken : CancellationToken
(* Defaults:
let _cardID = defaultArg cardID null
let _checkMyMessages = defaultArg checkMyMessages false
let _checkAllMessages = defaultArg checkAllMessages false
let _permissionsToken = defaultArg permissionsToken null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<ValueTuple<Dictionary<string, Object>, bool, bool, ValidationResult>>
- topicID Guid
-
- cardID NullableGuid (Optional)
-
- checkMyMessages Boolean (Optional)
-
- checkAllMessages Boolean (Optional)
-
- permissionsToken DictionaryString, Object (Optional)
-
- cancellationToken CancellationToken (Optional)
-
ValueTaskValueTupleDictionaryString,
Object,
Boolean,
Boolean,
ValidationResultIForumPermissionsProviderGetEditPermissionsInfoAsync(Guid, NullableGuid, Boolean, Boolean, DictionaryString, Object, CancellationToken) Метод вызывается в контексте расширений. Контекст можно получить, как
ForumExtensionContext.Current.CardContext