예제 #1
0
        public UserPageSetup NewUserVisit()
        {
            using (new TimedLog(this._UserName, "New user visit"))
            {
                var properties = new Dictionary<string, object>();
                properties.Add("UserName", this._UserName);
                var userSetup = new UserPageSetup();
                properties.Add("UserPageSetup", userSetup);

                WorkflowHelper.ExecuteWorkflow(typeof(FirstVisitWorkflow), properties);

                return userSetup;
            }
        }
예제 #2
0
        public UserPageSetup LoadUserSetup(string pageTitle)
        {
            using (new TimedLog(this._UserName, "Total: Existing user visit"))
            {
                var properties = new Dictionary<string, object>();
                properties.Add("UserName", this._UserName);
                properties.Add("PageName", pageTitle);
                var userSetup = new UserPageSetup();
                properties.Add("UserPageSetup", userSetup);

                WorkflowHelper.ExecuteWorkflow(typeof(UserVisitWorkflow), properties);

                return userSetup;
            }
        }
예제 #3
0
        public void ChangePageName(string newName)
        {
            using (new TimedLog(this._UserName, "Change Page Name"))
            {
                var properties = new Dictionary<string, object>();
                properties.Add("UserName", this._UserName);
                var userSetup = new UserPageSetup();
                properties.Add("PageName", newName);

                WorkflowHelper.ExecuteWorkflow(typeof(ChangePageNameWorkflow), properties);
            }
        }