public static WfQueuePersistenceSettings GetConfig()
		{
			WfQueuePersistenceSettings result = (WfQueuePersistenceSettings)ConfigurationBroker.GetSection("wfQueuePersistenceSettings");

			if (result == null)
				result = new WfQueuePersistenceSettings(true);

			return result;
		}
        public static WfQueuePersistenceSettings GetConfig()
        {
            WfQueuePersistenceSettings result = (WfQueuePersistenceSettings)ConfigurationBroker.GetSection("wfQueuePersistenceSettings");

            if (result == null)
            {
                result = new WfQueuePersistenceSettings(true);
            }

            return(result);
        }
Пример #3
0
        /// <summary>
        /// 执行一项队列操作
        /// </summary>
        /// <param name="pq"></param>
        public void DoQueueOperation(WfPersistQueue pq)
        {
            pq.NullCheck("pq");

            Dictionary <object, object> context = new Dictionary <object, object>();

            IWfProcess process = WfRuntime.GetProcessByProcessID(pq.ProcessID);

            try
            {
                WfQueuePersistenceSettings.GetConfig().GetPersisters().SaveData(process, context);
            }
            finally
            {
                WfRuntime.ClearCache();
            }
        }