Exemplo n.º 1
0
        /// <summary>
        /// 构造WfBackwardReciever实例
        /// </summary>
        /// <param name="userID"></param>
        /// <param name="userName"></param>
        /// <param name="backwardToActivityName"></param>
        /// <returns></returns>
        public static WfBackwardTaskReciever Instance(string backwardToActivityName,
                                                      string userID,
                                                      string userName)
        {
            var instance = new WfBackwardTaskReciever();

            instance.ActivityName = backwardToActivityName;
            instance.UserID       = userID;
            instance.UserName     = userName;

            return(instance);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 构造WfBackwardReciever实例
        /// </summary>
        /// <param name="userID"></param>
        /// <param name="userName"></param>
        /// <param name="backwardToActivityName"></param>
        /// <returns></returns>
        public static WfBackwardTaskReciever Instance(string backwardToActivityName,
            string userID,
            string userName)
        {
            var instance = new WfBackwardTaskReciever();
            instance.ActivityName = backwardToActivityName;
            instance.UserID = userID;
            instance.UserName = userName;

            return instance;
        }