protected ServiceBase(VkApi api, IOptions <VKOptions> options) { this.api = api; _options = options.Value ?? throw new ArgumentNullException("options", "Не переданы настройки для работы с VK"); }
public VKService(IOptions <VKOptions> optionsAccessor, OneMoreContext context) { _options = optionsAccessor.Value; _context = context; }