コード例 #1
0
        public Task Handle(Notification notification, string eventName, CancellationToken cancellationToken)
        {
            var properties = new Dictionary <string, object>
            {
                { "Notification", new Dictionary <string, object>(notification) },
                { "EventName", eventName }
            };

            NotificationEvent.TryExtractWorkflowId(eventName, out string workflowId);

            return(_workflowManager.TriggerEventAsync(NotificationEvent.EventName, properties, workflowId));
        }