Beispiel #1
0
        public InitiatedBySagaConnectorFactory()
        {
            _consumeFilter = new InitiatedBySagaMessageFilter<TSaga, TMessage>();

            ISagaFactory<TSaga, TMessage> sagaFactory = new DefaultSagaFactory<TSaga, TMessage>();

            _policy = new NewSagaPolicy<TSaga, TMessage>(sagaFactory, false);
        }
        public InitiatedBySagaConnectorFactory()
        {
            var consumeFilter = new InitiatedBySagaMessageFilter <TSaga, TMessage>();

            ISagaFactory <TSaga, TMessage> sagaFactory = new DefaultSagaFactory <TSaga, TMessage>();

            var policy = new NewSagaPolicy <TSaga, TMessage>(sagaFactory, false);

            _connector = new CorrelatedSagaMessageConnector <TSaga, TMessage>(consumeFilter, policy, x => x.Message.CorrelationId);
        }