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>(); }
public Vk(VkCallbackHandler handler, IOptions <VkOptions> vkOptions) { _handler = handler; _vkOptions = vkOptions.Value; }