Exemplo n.º 1
0
        /// <summary>
        /// 查找API
        /// </summary>
        /// <param name="type"></param>
        public static void DiscoverApiDocument(Type type)
        {
            if (!type.IsSubclassOf(typeof(ApiStation)))
            {
                return;
            }
            ZeroDiscover discover = new ZeroDiscover();

            discover.FindApi(type, true);
            discover.RegistDocument();
        }
Exemplo n.º 2
0
        /// <summary>
        /// 查找API
        /// </summary>
        /// <param name="type"></param>
        public static void DiscoverApiDocument(Type type)
        {
            if (!type.IsSubclassOf(typeof(ApiStation)))
            {
                return;
            }
            ZeroTrace.SystemLog("DiscoverApiDocument", type.FullName);
            ZeroDiscover discover = new ZeroDiscover();

            discover.FindApi(type, true);
            discover.RegistDocument();
        }