private static ServiceConfig GetServiceConfig()
        {
            IServiceConfiguration configuration = Container.GetService <IServiceConfiguration>();

            if (configuration == null)
            {
                throw new NullReferenceException("IServiceConfiguration接口不能为空");
            }
            ServiceConfig serviceConfig = configuration.GetServiceConfig();

            if (serviceConfig == null)
            {
                throw new NullReferenceException("服务配置信息不存在");
            }

            return(serviceConfig);
        }