Exemple #1
0
        public IWorkflow GetWorkflow()
        {
            MessageHandleWorkflow messageHandleWorkflow = new MessageHandleWorkflow(new CreateScopedHandlerWorkflow());
            ScopedMessageWorkflow scopedWorkflow        = new ScopedMessageWorkflow(serviceProvider, messageHandleWorkflow);

            return(scopedWorkflow);
        }
Exemple #2
0
        public IWorkflow GetWorkflow()
        {
            var messageHandleWorkflow = new MessageHandleWorkflow(new CreateScopedHandlerWorkflow());
            var scopedWorkflow        = new ScopedMessageWorkflow(serviceProvider, messageHandleWorkflow, tenantResolver);

            return(scopedWorkflow);
        }
        public IWorkflow GetWorkflow()
        {
            var messageHandleWorkflow = new MessageHandleWorkflow(new CreateScopedHandlerWorkflow());
            var scopedWorkflow        = new ScopedMessageWorkflow(serviceProvider, messageHandleWorkflow);
            var customWorkflow        = new InMemoryRetryWorkflow <HandleContext>(scopedWorkflow);

            return(customWorkflow);
        }
Exemple #4
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);
        }
Exemple #5
0
        public IWorkflow GetWorkflow()
        {
            var messageHandleWorkflow = new MessageHandleWorkflow(new CreateScopedHandlerWorkflow());
            var scopedWorkflow        = new ScopedMessageWorkflow(serviceProvider, messageHandleWorkflow, tenantResolver);

            messageHandleWorkflow.Finalize.Use(new ProjectionsWorkflow(x => ScopedMessageWorkflow.GetScope(x).ServiceProvider.GetRequiredService <IProjectionWriter>()));
            var projectionsWorkflow = new InMemoryRetryWorkflow <HandleContext>(scopedWorkflow);

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

            messageHandleWorkflow.ActualHandle.Override(new DynamicMessageIndex());
            var scopedWorkflow = new ScopedMessageWorkflow(serviceProvider, messageHandleWorkflow);
            var customWorkflow = new InMemoryRetryWorkflow <HandleContext>(scopedWorkflow);

            return(customWorkflow);
        }
        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);
        }