/// <summary>
		/// 注册收集器
		/// </summary>
		/// <param name="collector"></param>
		public static void RegisterCollector(IWfApplicationRuntimeParametersCollector collector)
		{
			collector.NullCheck("collector");

			List<IWfApplicationRuntimeParametersCollector> collectors =
				(List<IWfApplicationRuntimeParametersCollector>)ObjectContextCache.Instance.GetOrAddNewValue("WfCollectors", (cache, key) =>
				{
					List<IWfApplicationRuntimeParametersCollector> newItem = new List<IWfApplicationRuntimeParametersCollector>();

					cache.Add(key, newItem);

					return newItem;
				});

			collectors.Add(collector);
		}
        /// <summary>
        /// 注册收集器
        /// </summary>
        /// <param name="collector"></param>
        public static void RegisterCollector(IWfApplicationRuntimeParametersCollector collector)
        {
            collector.NullCheck("collector");

            List <IWfApplicationRuntimeParametersCollector> collectors =
                (List <IWfApplicationRuntimeParametersCollector>)ObjectContextCache.Instance.GetOrAddNewValue("WfCollectors", (cache, key) =>
            {
                List <IWfApplicationRuntimeParametersCollector> newItem = new List <IWfApplicationRuntimeParametersCollector>();

                cache.Add(key, newItem);

                return(newItem);
            });

            collectors.Add(collector);
        }