コード例 #1
0
ファイル: AddInBase.cs プロジェクト: peterbucher/silkveil
 public virtual void OnDownloadVerifying(object sender, DownloadVerifyingEventArgs e)
 {
 }
コード例 #2
0
        /// <summary>
        /// Raises the download verifying event.
        /// </summary>
        /// <param name="eventArgs">The event args.</param>
        protected virtual void OnDownloadVerifying(DownloadVerifyingEventArgs eventArgs)
        {
            // Log the verificationf of the download.
            _logger.Info(String.Format(CultureInfo.CurrentCulture,
                "The download '{0}' is being verified.", eventArgs.Mapping.Uri));

            // If there are any event handling methods subscribed, raise the event.
            EventHandler<DownloadVerifyingEventArgs> handler = this.DownloadVerifying;
            if (handler != null)
            {
                handler(this, eventArgs);
            }
        }