コード例 #1
0
ファイル: ThriftServer.cs プロジェクト: 5l1v3r1/Highway-1
        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;
            }
        }