public StatisticsService( IStatisticsRepository <StatWatchingV2Entity> watchingRepository, IStatisticsRepository <StatUserRegistrationV2Entity> userRegistrationRepository, IStatisticsRepository <StatProjectUploadingV2Entity> projectUploadingRepository, IStatisticsRepository <StatProjectStateV3Entity> projectStateRepostitory, IStatisticsRepository <StatProjectDeletionV2Entity> projectDeletionRepository, ITableValueConverter tableValueConverter, IStatMapper statMapper) { _watchingRepository = watchingRepository; _userRegistrationRepository = userRegistrationRepository; _projectUploadingRepository = projectUploadingRepository; _projectStateRepostitory = projectStateRepostitory; _projectDeletionRepository = projectDeletionRepository; _tableValueConverter = tableValueConverter; _statMapper = statMapper; }
public DiscordMessageHandler(IServiceProvider provider) { map = provider; bot = map.GetService <DiscordSocketClient>(); Mapper = map.GetService <IStatMapper>(); Logger = map.GetService <ConsoleLogger>(); Config = map.GetService <BotConfiguration>(); commands = map.GetService <CommandService>(); bot.MessageReceived += HandleCommand; bot.ReactionAdded += ReactionAdded; bot.ReactionRemoved += ReactionRemoved; bot.JoinedGuild += JoinedGuild; bot.ChannelCreated += ChannelCreated; channelCache = new Dictionary <ulong, ISocketMessageChannel>(); }
public PokemonRaidBotDbContext(IConnectionString cstr, IStatMapper mapper) { _cstr = cstr.GetConnectionString(); _mapper = mapper; }