Exemple #1
0
        private void fireStore(Dictionary <string, string> p)
        {
            string        workFlowToken = HttpContext.Current.Session["workflowtoken"].ToString();
            StockWorkFlow stockWorkFlow = WorkFlowCache <StockWorkFlow> .Find(w => w.Token.Equals(workFlowToken));

            stockWorkFlow.Store();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            ViewState["warningservertoken"] = MobileTokenBusiness.SetMobileToken("warningserver");
            WorkFlowCache <StockWorkFlow> .RemoveAll(p => p.Token.Equals(Convert.ToString(Session["workflowtoken"])));

            stockWorkFlow = new StockWorkFlow();
            WorkFlowCache <StockWorkFlow> .Add(stockWorkFlow);

            Session["workflowtoken"] = stockWorkFlow.Token;
        }
Exemple #3
0
        private void fireRequest(Dictionary <string, string> p)
        {
            string workFlowToken = HttpContext.Current.Session["workflowtoken"].ToString();
            string handler       = p["handler"];
            int    count         = Convert.ToInt32(p["count"]);

            StockWorkFlow stockWorkFlow = WorkFlowCache <StockWorkFlow> .Find(w => w.Token.Equals(workFlowToken));

            stockWorkFlow.Request(handler, count);
        }