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