示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="type"></param>
        /// <param name="resourceKey">[HANDLER_TYPE]|[RESOURCE_KEY]</param>
        /// <returns></returns>
        public static string GetObject(string handlerType, string resourceKey)
        {
            IResourceHandler handler = null;

            if (!_resourceHandlers.TryGetValue(handlerType, out handler))
            {
                throw new Exception(string.Format("The handler {0} not registered!", handlerType));
            }
            return(handler.GetObject(resourceKey));
        }