/// <summary>
        /// 注册一个静态的对象接口
        /// </summary>
        /// <param name="staticProxyType"></param>
        public static void Register(Type staticProxyType)
        {
            if (!(staticProxyType.IsClass && staticProxyType.IsSealed))
            {
                Logs.Error("类型 {0} 需要时静态类型", staticProxyType.Name);
                return;
            }

            var propertyTypes =
                staticProxyType.GetProperties(BindingFlags.Static | BindingFlags.Public | BindingFlags.SetProperty);
            foreach (var type in propertyTypes)
            {
                var cpc = new CreateProxyCode(type.PropertyType);
                var obj = cpc.CreateCodeAndBuilder();

                type.SetValue(null, obj, null);
            }
        }
        /// <summary>
        /// 注册一个静态的对象接口
        /// </summary>
        /// <param name="staticProxyType"></param>
        public static void Register(Type staticProxyType)
        {
            if (!(staticProxyType.IsClass && staticProxyType.IsSealed))
            {
                Logs.Error("类型 {0} 需要时静态类型", staticProxyType.Name);
                return;
            }

            var propertyTypes =
                staticProxyType.GetProperties(BindingFlags.Static | BindingFlags.Public | BindingFlags.SetProperty);

            foreach (var type in propertyTypes)
            {
                var cpc = new CreateProxyCode(type.PropertyType);
                var obj = cpc.CreateCodeAndBuilder();

                type.SetValue(null, obj, null);
            }
        }