コード例 #1
0
        /// <summary>
        /// Updates the session request data.
        /// </summary>
        public override void UpdateSessionRequestData()
        {
            UpdateSessionRequestEventArgs args = new UpdateSessionRequestEventArgs();

            args.UpdateType = UpdateSessionRequestType.Form;
            args.Form = this.Form;

            this.UpdateSessionRequestEvent(this, args);
        }
コード例 #2
0
        /// <summary>
        /// Updates the session request data.
        /// </summary>
        public override void UpdateSessionRequestData()
        {
            if ( postDataItems != null )
            {
                // save here
                SavePostDataChanges();

                UpdateSessionRequestEventArgs args = new UpdateSessionRequestEventArgs();
                args.UpdateType = UpdateSessionRequestType.PostData;
                args.PostData = formConverter.GetString(postDataItems);
                this.UpdateSessionRequestEvent(this, args);
            }
        }
コード例 #3
0
        public override void UpdateSessionRequestData()
        {
            UpdateSessionRequestEventArgs args = new UpdateSessionRequestEventArgs();
            args.UpdateType = UpdateSessionRequestType.Cookies;
            args.Cookies = GetCookies();

            this.UpdateSessionRequestEvent(this, args);
        }
 /// <summary>
 /// Updates the session request data.
 /// </summary>
 public override void UpdateSessionRequestData()
 {
     if ( queryStringEditor.Nodes.Count > 0 )
     {
         this.SaveQueryStringChanges();
         UpdateSessionRequestEventArgs args = new UpdateSessionRequestEventArgs();
         args.UpdateType = UpdateSessionRequestType.QueryString;
         args.QueryString = formConverter.ConvertQueryHashtable(this.queryDataValues, this.separator, this.pairSeparator);
         this.txtQueryString.Text = args.QueryString;
         this.UpdateSessionRequestEvent(this, args);
     }
 }
コード例 #5
0
 private void queryStringControl_UpdateSessionRequestEvent(object sender, UpdateSessionRequestEventArgs e)
 {
     if ( e.UpdateType == UpdateSessionRequestType.QueryString )
     {
         if ( this.CurrentSessionRequest is GetSessionRequest )
         {
             GetSessionRequest session = (GetSessionRequest)this.CurrentSessionRequest;
             session.QueryString = e.QueryString;
         }
     }
 }
コード例 #6
0
 private void postDataControl_UpdateSessionRequestEvent(object sender, UpdateSessionRequestEventArgs e)
 {
     if ( e.UpdateType == UpdateSessionRequestType.PostData )
     {
         if ( this.CurrentSessionRequest is PostSessionRequest )
         {
             PostSessionRequest session = (PostSessionRequest)this.CurrentSessionRequest;
             session.PostData = e.PostData;
         }
     }
 }
コード例 #7
0
 private void formControl_UpdateSessionRequestEvent(object sender, UpdateSessionRequestEventArgs e)
 {
     if ( e.UpdateType == UpdateSessionRequestType.Form )
     {
         if ( this.CurrentSessionRequest is PostSessionRequest )
         {
             PostSessionRequest session = (PostSessionRequest)this.CurrentSessionRequest;
             session.Form = e.Form;
         }
     }
 }
コード例 #8
0
 private void cookieControl_UpdateSessionRequestEvent(object sender, UpdateSessionRequestEventArgs e)
 {
     if ( e.UpdateType == UpdateSessionRequestType.Cookies )
     {
         this.CurrentSessionRequest.RequestCookies = e.Cookies;
     }
 }