Event arguments for the SourceVerification event.
Inheritance: System.EventArgs
        private bool IsSourceVerification(Uri sourceUrl, Uri entryUrl)
        {
            EventHandler <SourceVerificationEventArgs> handler = SourceVerification;

            if (handler != null)
            {
                var args = new SourceVerificationEventArgs(sourceUrl, entryUrl);
                handler(this, args);
                return(args.Verified);
            }
            return(Verifier.SourceContainsTarget(sourceUrl, entryUrl));
        }
Esempio n. 2
0
 private static void handler_SourceVerification(object sender, SourceVerificationEventArgs e)
 {
     e.Verified = true;
 }
Esempio n. 3
0
 private bool IsSourceVerification(Uri sourceUrl, Uri entryUrl)
 {
     SourceVerificationEventHandler handler = SourceVerification;
     if (handler != null)
     {
         SourceVerificationEventArgs args = new SourceVerificationEventArgs(sourceUrl, entryUrl);
         handler(this, args);
         return args.Verified;
     }
     else
     {
         return Verifier.SourceContainsTarget(sourceUrl, entryUrl);
     }
 }