예제 #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());
        }
예제 #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();
            }
        }