OurSonic.BuildAngular.buildCache C# (CSharp) Method

buildCache() private static method

private static buildCache ( IHttpService http, ITemplateCacheService templateCache ) : void
http IHttpService
templateCache ITemplateCacheService
return void
        private static void buildCache(IHttpService http, ITemplateCacheService templateCache)
        {
            string[] uis =
            {
                LevelSelectorController.View,
            };
            for (int index = 0; index < uis.Length; index++)
            {
                var ui = string.Format("{1}partials/UIs/{0}.html", uis[index], Constants.ContentAddress);
                http.Get(ui, null).Success(a => templateCache.Put(ui, a));
            }
        }