Example #1
0
 /// <summary>
 /// TBD
 /// </summary>
 /// <param name="config">TBD</param>
 public DnsSettings(Config config)
 {
     Dispatcher         = config.GetString("dispatcher");
     Resolver           = config.GetString("resolver");
     ResolverConfig     = config.GetConfig(Resolver);
     ProviderObjectName = ResolverConfig.GetString("provider-object");
 }
Example #2
0
            /// <summary>
            /// TBD
            /// </summary>
            /// <param name="config">TBD</param>
            public DnsSettings(Config config)
            {
                if (config.IsNullOrEmpty())
                {
                    throw ConfigurationException.NullOrEmptyConfig <DnsSettings>();
                }

                Dispatcher         = config.GetString("dispatcher", null);
                Resolver           = config.GetString("resolver", null);
                ResolverConfig     = config.GetConfig(Resolver);
                ProviderObjectName = ResolverConfig.GetString("provider-object", null);
            }