Exemplo n.º 1
0
        /// 准备开始扫描
        public bool PrepareScan(bool search_all = false)
        {
            // 触发开始扫描事件
            SiteScanBeginEventArgs e1 = new SiteScanBeginEventArgs(CurrentWeb);
            OnSiteScanBegin(e1);

            // 正式扫描
            return ScaningListPage(CurrentWeb.URL, search_all);
        }
Exemplo n.º 2
0
        public virtual void OnSiteScanBegin(SiteScanBeginEventArgs e)
        {
            if (SiteScanBegin != null)
            {
                Delegate[] delArray = SiteScanBegin.GetInvocationList();

                foreach (Delegate del in delArray)
                {
                    SiteScanBeginHandler method = (SiteScanBeginHandler)del;
                    method.BeginInvoke(this, e, null, null);
                }
            }
        }