Esempio n. 1
0
        public NotificationService(IBus bus, ILogger logger, ILogEventBuilder eventBuilder)
        {
            _repository = new NotificationRepository();
            _notificationPlayerRepository = new NotificationPlayerRepository();
            _notificationRepository = new NotificationRepository();
            //_publisher = new RabbitMqPublisher()
            //{
            //    MessageLookups = new List<MessageConfig>()
            //    {
            //        new MessageConfig()
            //        {
            //            ExchangeName = "PB.Events",
            //            MessageType = typeof (NotificationCreated),
            //            RoutingKey = ""
            //        }
            //    }
            //};

            _bus = bus;
            _logger = logger;
            _eventBuilder = eventBuilder;

            _publisher = new RabbitMqPublisher(ConfigurationManager.AppSettings["Queue.Uri"])
            {
                MessageLookups = new List<MessageConfig>()
                {
                    new MessageConfig()
                    {
                        ExchangeName = "PB.Events",
                        MessageType = typeof (NotificationCreated),
                        RoutingKey = ""
                    }
                }
            };
        }
Esempio n. 2
0
 public PlayerService(ILogger logger, ILogEventBuilder eventBuilder)
 {
     _logger = logger;
     _eventBuilder = eventBuilder;
     _userTeamRepository = new UserTeamRepository();
     _userRepository = new UserRepository();
     _userRankRepository = new UserRankRepository();
 }
Esempio n. 3
0
 public LoadoutService(ILogger logger, ICopier copier, ILogEventBuilder eventBuilder)
 {
     _logger = logger;
     _copier = copier;
     _eventBuilder = eventBuilder;
     _loadoutRepository = new LoadoutRepository();
     _byPlayerIdQuery = new LoadoutsByUserId();
 }
Esempio n. 4
0
 public MarkerService(IBus bus, ILogEventBuilder eventBuilder, ILogger logger)
 {
     _markerRepository = new MarkerRepository();
     _markersByUserIdQuery = new MarkersByUserId();
     _playerExistsQuery = new PlayerExistsQuery();
     _bus = bus;
     _eventBuilder = eventBuilder;
     _logger = logger;
 }
Esempio n. 5
0
 public TeamService(ILogger logger, ILogEventBuilder eventBuilder)
 {
     _teamRepository = new TeamRepository();
     _rankRepository = new RankRepository();
     _userTeamRepository = new UserTeamRepository();
     _userRepository = new UserRepository();
     _publisher = new RabbitMqPublisher();
     _userRankRepository = new UserRankRepository();
     _logger = logger;
     _eventBuilder = eventBuilder;
 }
Esempio n. 6
0
 public GearService(ILogger logger, ILogEventBuilder eventBuilder)
 {
     _logger = logger;
     _eventBuilder = eventBuilder;
     _gearRepository = new GearRepository();
 }
Esempio n. 7
0
 public RankService(ILogger logger, ILogEventBuilder eventBuilder)
 {
     _logger = logger;
     _eventBuilder = eventBuilder;
     _rankRepository = new RankRepository();
 }