/// <summary>
        /// Return an <see cref="IResource"/> for the
        /// specified string address.
        /// </summary>
        /// <param name="resource">The string adress.</param>
        /// <returns>
        /// An appropriate <see cref="IResource"/>.
        /// </returns>
        public static IResource GetResource(string resource)
        {
            Contract.Require.That(resource, Is.Not.Null & Is.Not.Empty).When("retrieving resource argument in GetResource method");

            CustomUriBuilder builder = new CustomUriBuilder(resource, Resources.DefaultBasePath);

            IResourceLoader loader = resourceLoaders[builder.Uri.Scheme];
            IResource       res    = loader.Create(builder.Uri);

            if (loader is FileResourceLoader)
            {
                FileResourceLoadEventArgs evnt = new FileResourceLoadEventArgs();
                evnt.FileInfo = res.FileInfo;

                LoadFileResource(loader, evnt);
            }
            return(res);
        }
        /// <summary>
        /// Return an <see cref="IResource"/> for the
        /// specified string address.
        /// </summary>
        /// <param name="resource">The string adress.</param>
        /// <returns>
        /// An appropriate <see cref="IResource"/>.
        /// </returns>
        public static IResource GetResource(string resource)
        {
            Contract.Require.That(resource, Is.Not.Null & Is.Not.Empty).When("retrieving resource argument in GetResource method");

            CustomUriBuilder builder = new CustomUriBuilder(resource, Resources.DefaultBasePath);

            IResourceLoader loader = resourceLoaders[builder.Uri.Scheme];
            IResource res = loader.Create(builder.Uri);

            if (loader is FileResourceLoader)
            {
                FileResourceLoadEventArgs evnt = new FileResourceLoadEventArgs();
                evnt.FileInfo = res.FileInfo;

                LoadFileResource(loader, evnt);
            }
            return res;
        }
 private void FileResourceEventHandler(object sender, FileResourceLoadEventArgs evnt)
 {
     fileNames.Add(evnt.FileInfo.Name);
 }
 private void FileResourceEventHandler(object sender, FileResourceLoadEventArgs evnt)
 {
     FileResourceLoad(sender, evnt);
 }