Beispiel #1
0
        public async Task <Unit> Handle(CancelMeeting request, CancellationToken cancellationToken)
        {
            // TODO: implement handling
            // from command get information about meeting to be changed
            // cancel it via graph
            // after successfull cancellation post event to database
            try
            {
                await _graphClient.CancelMeetingAsync(request.MeetingId, request.TeamId);

                await _integrationRepository.InsertCancelMeetingEventAsync(request.MeetingId, request.TeamId);
            }
            catch (Exception e)
            {
                throw e;
            }

            return(Unit.Value);
        }