public Task<(ForumResponse Response, ValidationResult Result)> AddTopicAsync(
Guid cardID,
TopicModel topic,
TopicAuthorAction authorAction = TopicAuthorAction.AddParticipantAndSubscribe,
CancellationToken cancellationToken = default
)Public Function AddTopicAsync (
cardID As Guid,
topic As TopicModel,
Optional authorAction As TopicAuthorAction = TopicAuthorAction.AddParticipantAndSubscribe,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of (Response As ForumResponse, Result As ValidationResult))public:
virtual Task<ValueTuple<ForumResponse^, ValidationResult^>>^ AddTopicAsync(
Guid cardID,
TopicModel^ topic,
TopicAuthorAction authorAction = TopicAuthorAction::AddParticipantAndSubscribe,
CancellationToken cancellationToken = CancellationToken()
) sealedabstract AddTopicAsync :
cardID : Guid *
topic : TopicModel *
?authorAction : TopicAuthorAction *
?cancellationToken : CancellationToken
(* Defaults:
let _authorAction = defaultArg authorAction TopicAuthorAction.AddParticipantAndSubscribe
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ValueTuple<ForumResponse, ValidationResult>>
override AddTopicAsync :
cardID : Guid *
topic : TopicModel *
?authorAction : TopicAuthorAction *
?cancellationToken : CancellationToken
(* Defaults:
let _authorAction = defaultArg authorAction TopicAuthorAction.AddParticipantAndSubscribe
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ValueTuple<ForumResponse, ValidationResult>> ForumResponse - ответ на запрос.
ValidationResult, содержащий информацию по возникшим ошибкам.