YAML resources collection.
Inheritance: IResourceCachesHolder
 /// <summary>
 /// Executes task.
 /// </summary>
 /// <param name="application">The application.</param><param name="kernel">The kernel.</param>
 public void Execute(IApplication application, IKernel kernel)
 {
     var configurationManager = kernel.Resolve<IConfigurationManager>();
     var resourcesDirectory = configurationManager.AppSettings[ResourcesDirectoryKey];
     if (String.IsNullOrEmpty(resourcesDirectory))
     {
         resourcesDirectory = DefaultResourcesDirectory;
     }
     var resourceCacheHolder = new YamlResourceCacheHolder(application.Environment, Path.Combine(application.RootPath, resourcesDirectory));
     kernel.Register(Component.For<IResourceCachesHolder>().Instance(resourceCacheHolder).LifeStyle.Singleton);
 }
        /// <summary>
        /// Executes task.
        /// </summary>
        /// <param name="application">The application.</param><param name="kernel">The kernel.</param>
        public void Execute(IApplication application, IKernel kernel)
        {
            var configurationManager = kernel.Resolve <IConfigurationManager>();
            var resourcesDirectory   = configurationManager.AppSettings[ResourcesDirectoryKey];

            if (String.IsNullOrEmpty(resourcesDirectory))
            {
                resourcesDirectory = DefaultResourcesDirectory;
            }
            var resourceCacheHolder = new YamlResourceCacheHolder(application.Environment, Path.Combine(application.RootPath, resourcesDirectory));

            kernel.Register(Component.For <IResourceCachesHolder>().Instance(resourceCacheHolder).LifeStyle.Singleton);
        }