public Task Handle(WorkflowCancelled notification, CancellationToken cancellationToken)
 {
     notification.WorkflowExecutionContext.WorkflowInstance.CancelledAt = _clock.GetCurrentInstant();
     return(Task.CompletedTask);
 }
 public async Task Handle(WorkflowCancelled notification, CancellationToken cancellationToken) => await _workflowInstanceScheduler.UnscheduleAsync(notification.WorkflowExecutionContext.WorkflowInstance.Id, cancellationToken);