Ejemplo n.º 1
0
        public TopicSubscription(IMessageGateway messages, AzureServiceBusSettings settings)
        {
            _messages = messages;

            foreach (var subscription in settings.Subscriptions)
            {
                this.CreateClient(settings.ConnectionString, subscription.TopicName, subscription.SubscriptionName);
            }
        }
Ejemplo n.º 2
0
        public AccountController(IFormsAuthentication formsAuth, IMembershipService service, IMessageGateway messageGateway)
        {
            Check.Require(formsAuth != null, "Forms Authentication Service required");
            Check.Require(service != null, "Membership Service required");
            Check.Require(messageGateway != null, "Message Gateway required");

            FormsAuth = formsAuth;
            MembershipService = service;
            MessageService = messageGateway;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PublishEvents" /> class.
        /// </summary>
        /// <param name="messages">The configured <see cref="IMessageGateway" />.</param>
        public PublishEvents(IMessageGateway messages)
        {
            Argument.NotNull(messages, nameof(messages));

            _messages = messages;
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsumeEventFeed" /> class.
 /// </summary>
 /// <param name="messages">The configured <see cref="IMessageGateway"/>.</param>
 public ConsumeEventFeed(IMessageGateway messages)
 {
     _messages = messages;
 }
Ejemplo n.º 5
0
 public ChatService(IMessageGateway messageGateway, IBus bus)
 {
     _messageGateway = messageGateway;
     _bus            = bus;
     _bus.AddEndPoint(x => x.Exchange("client", ExchangeType.fanout));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PublishEvents" /> class.
 /// </summary>
 /// <param name="components">The current component context.</param>
 public PublishEvents(IComponentContext components)
 {
     _messageGateway = components.Resolve <IMessageGateway>();
     _eventStore     = components.Resolve <IEventStore>();
 }
Ejemplo n.º 7
0
 public ChatService(IMessageGateway messageGateway, IBus bus)
 {
     _messageGateway = messageGateway;
     _bus = bus;
     _bus.AddEndPoint(x => x.Exchange("client", ExchangeType.fanout));
 }
Ejemplo n.º 8
0
 public RetryMessageDispatcher(IMessageGateway gateway)
 {
     MessageGateway = gateway;
 }
Ejemplo n.º 9
0
 public ScheduleRunner(IMessageGateway messages)
 {
     _messages = messages;
 }
Ejemplo n.º 10
0
 public UserAdministrationController(IUserBLL userBLL, IMessageGateway messageGateway)
 {
     UserBLL = userBLL;
     MessageGateway = messageGateway;
 }