예제 #1
0
 /// <summary>
 /// Loads the scheme options.
 /// </summary>
 public void LoadOptions(WebConfig webConfig)
 {
     Options = new SchemeOptions(webConfig.GetOptions("Scheme"))
     {
         RefreshRate = webConfig.DisplayOptions.RefreshRate
     };
 }
예제 #2
0
        private readonly ILog log; // the application log


        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public PluginContext(ILog log)
        {
            this.log    = log ?? throw new ArgumentNullException(nameof(log));
            Options     = new SchemeOptions(new OptionList());
            CompManager = new CompManager(log);
        }