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)); }
private static void handler_SourceVerification(object sender, SourceVerificationEventArgs e) { e.Verified = true; }
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); } }