public ContractNotificationService(IESIService esiService, IMapper mapper,
                                    IDiscordService discordService, ISlackService slackService, IDataStorageService dataStorageService)
 {
     _esiService         = esiService;
     _mapper             = mapper;
     _slackService       = slackService;
     _discordService     = discordService;
     _dataStorageService = dataStorageService;
 }
Esempio n. 2
0
        public KillbotService(IESIService esiService, IKillboardService killboardService,
                              ICommunicationService communicationsService)
        {
            _esiService            = esiService;
            _killboardService      = killboardService;
            _communicationsService = communicationsService;

            Console.Title = string.Concat(_esiService.ParentCorporation.Name, " Killbot");

            if (!System.IO.Directory.Exists("logs"))
            {
                System.IO.Directory.CreateDirectory("logs");
            }

            _killboardService.CorporateKillEventHandler += CorporateKillEventHandler;
        }