private ThriftServer() { Configuration config = AppSetting.GetConfiguration(); ThriftSection thriftSection = config.GetSection("Thrift") as ThriftSection; if (thriftSection != null && thriftSection.Servers != null && thriftSection.Servers.Count > 0) { ThriftServerElement element = thriftSection.Servers[0]; Address = element.Address; Port = element.Port; TimeOut = thriftSection.TimeOut; } }