示例#1
0
 private void AndAPublisherToThePrimaryRegion(string primaryRegion)
 {
     _primaryPublisher = CreateMeABus
                         .WithLogging(LoggerFactory)
                         .InRegion(primaryRegion)
                         .WithSnsMessagePublisher <SimpleMessage>();
 }
示例#2
0
 private void AndAPublisherToTheSecondaryRegion(string secondaryRegion)
 {
     _secondaryPublisher = CreateMeABus
                           .WithLogging(LoggerFactory)
                           .InRegion(secondaryRegion)
                           .WithSqsMessagePublisher <SimpleMessage>(cfg => cfg.QueueName = QueueName);
 }
示例#3
0
 protected override IMessagePublisher CreateSystemUnderTest()
 {
     Publisher = JustSaying.CreateMeABus.InRegion("eu-west-1")
                 .WithSnsMessagePublisher <OrderPlaced>();
     Publisher.StartListening();
     return(Publisher);
 }
示例#4
0
 private void AndAPublisherToTheSecondaryRegion(string secondaryRegion)
 {
     _secondaryPublisher = CreateMeABus
                           .WithLogging(new LoggerFactory())
                           .InRegion(secondaryRegion)
                           .WithSqsMessagePublisher <GenericMessage>(configuration => { });
 }
 private void AndAPublisherToThePrimaryRegion(string primaryRegion)
 {
     _primaryPublisher = CreateMeABus
                         .WithLogging(new LoggerFactory())
                         .InRegion(primaryRegion)
                         .WithSnsMessagePublisher <GenericMessage>();
 }
 private void AndAPublisherWithAFailoverRegion()
 {
     _publisher = CreateMeABus
                  .InRegion(PrimaryRegion)
                  .WithFailoverRegion(SecondaryRegion)
                  .WithActiveRegion(_getActiveRegion)
                  .WithSnsMessagePublisher <GenericMessage>();
 }
示例#7
0
 protected override IMessagePublisher CreateSystemUnderTest()
 {
     Publisher = CreateMeABus.WithLogging(new LoggerFactory())
                 .InRegion("eu-west-1")
                 .WithSnsMessagePublisher <OrderPlaced>();
     Publisher.StartListening();
     return(Publisher);
 }
 private void AndAPublisherWithAFailoverRegion()
 {
     _publisher = CreateMeABus
         .InRegion(PrimaryRegion)
         .WithFailoverRegion(SecondaryRegion)
         .WithActiveRegion(_getActiveRegion)
         .WithSnsMessagePublisher<GenericMessage>();
 }
 private void AndAPublisherWithAFailoverRegion()
 {
     _publisher = CreateMeABus
                  .WithLogging(LoggerFactory)
                  .InRegion(PrimaryRegion)
                  .WithFailoverRegion(SecondaryRegion)
                  .WithActiveRegion(_getActiveRegion)
                  .WithSnsMessagePublisher <SimpleMessage>();
 }
示例#10
0
 private void AndAPublisherWithAFailoverRegion()
 {
     _publisher = CreateMeABus
                  .WithLogging(new LoggerFactory())
                  .InRegion(PrimaryRegion)
                  .WithFailoverRegion(SecondaryRegion)
                  .WithActiveRegion(_getActiveRegion)
                  .WithSqsMessagePublisher <GenericMessage>(configuration => { });
 }
 private void AndAPublisherToTheSecondaryRegion(string secondaryRegion)
 {
     _secondaryPublisher = CreateMeABus
         .InRegion(secondaryRegion)
         .WithSqsMessagePublisher<GenericMessage>(configuration => { });
 }
 private void AndAPublisherToTheSecondaryRegion(string secondaryRegion)
 {
     _secondaryPublisher = CreateMeABus
                           .InRegion(secondaryRegion)
                           .WithSnsMessagePublisher <GenericMessage>();
 }
 private void AndAPublisherToThePrimaryRegion(string primaryRegion)
 {
     _primaryPublisher = CreateMeABus
                         .InRegion(primaryRegion)
                         .WithSnsMessagePublisher <GenericMessage>();
 }
示例#14
0
 public SongController(IHaveFulfilledPublishRequirements publisher)
 {
     _publisher = publisher;
 }
 private void AndAPublisherToThePrimaryRegion(string primaryRegion)
 {
     _primaryPublisher = CreateMeABus
                         .InRegion(primaryRegion)
                         .WithSqsMessagePublisher <GenericMessage>(configuration => { });
 }
 private void AndAPublisherToThePrimaryRegion(string primaryRegion)
 {
     _primaryPublisher = CreateMeABus
         .InRegion(primaryRegion)
         .WithSnsMessagePublisher<GenericMessage>();
 }