IForumProviderStrategyCheckPermissionAsync - метод |
Проверяет пришел ли запрос от сессии пользователя, который есть в участниках
Пространство имён:
Tessa.Forums
Сборка:
Tessa (в Tessa.dll) Версия: 3.5.0.19
Синтаксис Task<(ParticipantModel participant, ForumResponse response)> CheckPermissionAsync(
Guid topicID,
bool isSuperModerator,
Guid? userID = null,
CancellationToken cancellationToken = default
)
Function CheckPermissionAsync (
topicID As Guid,
isSuperModerator As Boolean,
Optional userID As Guid? = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of (participant As ParticipantModel, response As ForumResponse))
Task<ValueTuple<ParticipantModel^, ForumResponse^>>^ CheckPermissionAsync(
Guid topicID,
bool isSuperModerator,
Nullable<Guid> userID = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
abstract CheckPermissionAsync :
topicID : Guid *
isSuperModerator : bool *
?userID : Nullable<Guid> *
?cancellationToken : CancellationToken
(* Defaults:
let _userID = defaultArg userID null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ValueTuple<ParticipantModel, ForumResponse>>
Параметры
- topicID
- Тип: SystemGuid
- isSuperModerator
- Тип: SystemBoolean
- userID (Optional)
- Тип: SystemNullableGuid
- cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
Возвращаемое значение
Тип:
TaskValueTupleParticipantModel,
ForumResponseСм. также