private async Task ShareTicket(SharedTicket share)
        {
            logger?.LogInformation($"Sharing {share.Reason} ticket {share.Id}");

            await zendesk.MarkSharing(share);

            var wrap = MapperConfig.Map <Middleware.EventWrapper>(share.Response);

            await share.Switch(
                solved => middleware.SolveTicket(wrap),
                handedOff => middleware.HandOffTicket(wrap),
                escalated => middleware.EscalateTicket(wrap)
                );

            await zendesk.MarkShared(share);

            logger?.LogInformation($"Shared {share.Reason} ticket {share.Id}");
        }
Пример #2
0
 Task ISharingTickets.MarkShared(SharedTicket share) => sharing.MarkShared(share);