示例#1
0
        /// <summary>
        /// Raises the redirect initializing event.
        /// </summary>
        /// <param name="eventArgs">The event args.</param>
        protected virtual void OnRedirectInitializing(RedirectInitializingEventArgs eventArgs)
        {
            // Log the successful redirect.
            _logger.Info(String.Format(CultureInfo.CurrentCulture,
                "The redirect '{0}' is initialized.", eventArgs.Redirect.Uri));

            // If there are any event handling methods subscribed, raise the event.
            EventHandler<RedirectInitializingEventArgs> handler = this.RedirectInitializing;
            if (handler != null)
            {
                handler(this, eventArgs);
            }
        }
示例#2
0
 public void Validate(object sender, RedirectInitializingEventArgs e)
 {
     this.Validate();
 }