public AbstractOptions(string sectionName, IConfiguration config)
        {
            if (sectionName == null)
            {
                throw new ArgumentNullException(nameof(sectionName));
            }

            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }

            Global = ManagementOptions.GetInstance(config);
            Global.EndpointOptions.Add(this);

            var section = config.GetSection(sectionName);

            if (section != null)
            {
                section.Bind(this);
            }
        }
 public AbstractOptions()
 {
     Global = ManagementOptions.GetInstance();
     Global.EndpointOptions.Add(this);
 }