Ejemplo n.º 1
0
 public VkCallbackHandler(CommandsService commandsService,
                          BotDbContext db,
                          IVkApi vkApi,
                          IEnumerable <ISender> senders,
                          IOptions <VkOptions> options,
                          IMapper mapper)
 {
     _commandsService = commandsService;
     _db      = db;
     _vkApi   = vkApi;
     _sender  = senders.First(x => x.ConsumerType == ConsumerType.Vkontakte);
     _mapper  = mapper;
     _options = options.Value;
     _logger  = Log.ForContext <VkCallbackHandler>();
 }
Ejemplo n.º 2
0
Archivo: Vk.cs Proyecto: equuskk/Goblin
 public Vk(VkCallbackHandler handler, IOptions <VkOptions> vkOptions)
 {
     _handler   = handler;
     _vkOptions = vkOptions.Value;
 }