예제 #1
0
 public SpamCommand(IServiceProvider service, long chatId) : base(service, chatId)
 {
     _client            = service.GetService <IGameplayClient>();
     _villageRepository = service.GetService <IVillageRepository>();
     _mapper            = service.GetService <IMapper>();
     _unitRepository    = service.GetService <IUnitRepository>();
 }
 public UpdateUserInfoCommand(IServiceProvider service, long chatId) : base(service, chatId)
 {
     _client                = service.GetService <IGameplayClient>();
     _mapper                = service.GetService <IMapper>();
     _villageRepository     = service.GetService <IVillageRepository>();
     _travianUserRepository = service.GetService <ITravianUserRepository>();
     _botService            = service.GetService <IBotService>();
 }
예제 #3
0
 public AbstractJob(IServiceProvider service)
 {
     _logger = service.GetService <ILogger <AbstractJob> >();
     _travianUserRepository = service.GetService <ITravianUserRepository>();
     _gameplayClient        = service.GetService <IGameplayClient>();
     _botUserProvider       = service.GetService <IBotUserProvider>();
     _bot = service.GetService <IBotService>();
 }
 public TravianUserController(
     ITravianUserRepository repo,
     IServiceProvider serviceProvider,
     ISchedulerService scheduler,
     UserManager <BotUser> userManager,
     IGameplayClient client,
     ILogger <TravianUserController> logger)
 {
     this._repo            = repo;
     this._serviceProvider = serviceProvider;
     _scheduler            = scheduler;
     this._userManager     = userManager;
     _client      = client;
     this._logger = logger;
 }
예제 #5
0
 public AbstractQueueableCommand(IServiceProvider service, long chatId) : base(service, chatId)
 {
     _travianUserRepository = service.GetService <ITravianUserRepository>();
     _schedulerService      = service.GetService <ISchedulerService>();
     _gameplayClient        = service.GetService <IGameplayClient>();
 }