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 = "" } } }; }
public PlayerService(ILogger logger, ILogEventBuilder eventBuilder) { _logger = logger; _eventBuilder = eventBuilder; _userTeamRepository = new UserTeamRepository(); _userRepository = new UserRepository(); _userRankRepository = new UserRankRepository(); }
public LoadoutService(ILogger logger, ICopier copier, ILogEventBuilder eventBuilder) { _logger = logger; _copier = copier; _eventBuilder = eventBuilder; _loadoutRepository = new LoadoutRepository(); _byPlayerIdQuery = new LoadoutsByUserId(); }
public MarkerService(IBus bus, ILogEventBuilder eventBuilder, ILogger logger) { _markerRepository = new MarkerRepository(); _markersByUserIdQuery = new MarkersByUserId(); _playerExistsQuery = new PlayerExistsQuery(); _bus = bus; _eventBuilder = eventBuilder; _logger = logger; }
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; }
public GearService(ILogger logger, ILogEventBuilder eventBuilder) { _logger = logger; _eventBuilder = eventBuilder; _gearRepository = new GearRepository(); }
public RankService(ILogger logger, ILogEventBuilder eventBuilder) { _logger = logger; _eventBuilder = eventBuilder; _rankRepository = new RankRepository(); }