示例#1
0
        private JustSayingFluently CreateFluent(JustSayingBus bus, ILoggerFactory loggerFactory)
        {
            IAwsClientFactoryProxy proxy        = CreateFactoryProxy();
            IVerifyAmazonQueues    queueCreator = new AmazonQueueCreator(proxy, loggerFactory);

            var fluent = new JustSayingFluently(bus, queueCreator, proxy, loggerFactory);

            IMessageSerializationFactory serializationFactory = CreateMessageSerializationFactory();
            IMessageMonitor         messageMonitor            = CreateMessageMonitor();
            IMessageContextAccessor messageContextAccessor    = CreateMessageContextAccessor();

            fluent.WithSerializationFactory(serializationFactory)
            .WithMonitoring(messageMonitor)
            .WithMessageContextAccessor(messageContextAccessor);

            if (ServicesBuilder?.MessageLock != null)
            {
                fluent.WithMessageLockStoreOf(ServicesBuilder.MessageLock());
            }

            return(fluent);
        }
 public MessageSerializationRegister(IMessageSubjectProvider messageSubjectProvider, IMessageSerializationFactory serializationFactory)
 {
     _messageSubjectProvider = messageSubjectProvider ?? throw new ArgumentNullException(nameof(messageSubjectProvider));
     _serializationFactory   = serializationFactory;
 }
示例#3
0
 public IMayWantOptionalSettings WithSerializationFactory(IMessageSerializationFactory factory)
 {
     _serializationFactory = factory;
     return(this);
 }