Example #1
0
        protected void Application_Start(object sender, EventArgs e)
        {
            RegisterRoutes(RouteTable.Routes);

            var context = new HttpRequestOrProcessHybridContext();

            context.Add("process-key", "value");

            var context2 = new HttpRequestOrProcessHybridContext();

            var found = context2.Contains("process-key");
        }
Example #2
0
        public ActionResult Index()
        {
            var context1 = new HttpRequestOrProcessHybridContext();

            var found = context1.Contains("process-key");

            context1["key"] = "value";

            var context2 = new HttpRequestOrProcessHybridContext();

            var value = context2["key"];

            return View();
        }