コード例 #1
0
        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";
            PoolWatcher pw = new PoolWatcher();

            pw.Notify(ViewBag.Message);

            return(View());
        }
コード例 #2
0
        public ActionResult Contact()
        {
            ViewBag.Message = "Structure map instance Home/Contact().";
            PoolWatcher pw = new PoolWatcher();

            pw.Action = this._notificationAction;
            pw.Notify(ViewBag.Message);

            return(View());
        }