Beispiel #1
0
        public IWorkflow GetWorkflow()
        {
            MessageHandleWorkflow messageHandleWorkflow = new MessageHandleWorkflow(new CreateScopedHandlerWorkflow());
            ScopedMessageWorkflow scopedWorkflow        = new ScopedMessageWorkflow(serviceProvider, messageHandleWorkflow);
            DiagnosticsWorkflow <HandleContext>    diagnosticsWorkflow = new DiagnosticsWorkflow <HandleContext>(scopedWorkflow, serviceProvider.GetRequiredService <DiagnosticListener>());
            ExceptionEaterWorkflow <HandleContext> exceptionEater      = new ExceptionEaterWorkflow <HandleContext>(diagnosticsWorkflow);

            return(exceptionEater);
        }
        public IWorkflow GetWorkflow()
        {
            MessageHandleWorkflow messageHandleWorkflow = new MessageHandleWorkflow(new CreateScopedHandlerWorkflow());

            messageHandleWorkflow.ActualHandle.Override(new DynamicMessageIndex());
            ScopedMessageWorkflow scopedWorkflow = new ScopedMessageWorkflow(serviceProvider, messageHandleWorkflow);
            InMemoryRetryWorkflow <HandleContext>  retryableWorkflow   = new InMemoryRetryWorkflow <HandleContext>(scopedWorkflow);
            DiagnosticsWorkflow <HandleContext>    diagnosticsWorkflow = new DiagnosticsWorkflow <HandleContext>(retryableWorkflow, serviceProvider.GetRequiredService <DiagnosticListener>());
            ExceptionEaterWorkflow <HandleContext> exceptionEater      = new ExceptionEaterWorkflow <HandleContext>(diagnosticsWorkflow);

            return(exceptionEater);
        }