/// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing && (components != null))
     {
         components.Dispose();
     }
     base.Dispose(disposing);
     VKService.Dispose();
 }
Example #2
0
 public VKBot(IOptions <VKBotOptions> options)
 {
     vkService = new VKService(_logger);
     _options  = options.Value;
 }