Exemple #1
0
        private void ExecuteOpenFormControllerOperation()
        {
            IWfProcess process = WfClientContext.Current.OriginalActivity.Process;
            OpenFormControllerOperation operation = new OpenFormControllerOperation();

            string requestTicketString = HttpContext.Current.Request.QueryString.GetValue("requestTicket", string.Empty);

            if (requestTicketString.IsNotEmpty())
            {
                RelativeTicket requestTicket = RelativeTicket.DecryptFromString(requestTicketString);

                requestTicket.CheckIsValid();

                operation.IsRelativeForm = true;
            }

            operation.Process           = process;
            operation.NavigationCommand = CollectNavigationCommand(this.GetType());
            operation.SceneInfo         = CollectSceneInfo(this.GetType());

            OnInitOperation(operation);

            PerformanceMonitorHelper.GetDefaultMonitor().WriteExecutionDuration("DoOpenFormControllerOperation",
                                                                                () => operation.DoOperation());
        }
Exemple #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["requestTicket"] != null)
            {
                RelativeTicket ticket = RelativeTicket.DecryptFromString((string)Request.QueryString["requestTicket"]);

                ticket.CheckIsValid();
            }
        }
Exemple #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["requestTicket"] != null)
            {
                RelativeTicket ticket = RelativeTicket.DecryptFromString((string)Request.QueryString["requestTicket"]);

                ticket.CheckUriReferer();

                string redir = RelativeTicket.GetRequestTicketUrl(ticket.TargetUri, string.Empty);

                Response.Redirect(redir);
            }
        }
Exemple #4
0
        protected void ProcessRequestTicket(string requestTicket)
        {
            RelativeTicket ticket = RelativeTicket.DecryptFromString(requestTicket);

            ticket.CheckUriReferer();

            if (ticket.TargetUri.IsNotEmpty())
            {
                string redir = RelativeTicket.GetRequestTicketUrl(ticket.TargetUri, string.Empty);

                HttpContext.Current.Response.Redirect(redir);
            }
        }