ImageSelection.SaveCategoryOrSourceImages C# (CSharp) Méthode

SaveCategoryOrSourceImages() private static méthode

private static SaveCategoryOrSourceImages ( string type, string id, string>.Dictionary images ) : void
type string
id string
images string>.Dictionary
Résultat void
    private static void SaveCategoryOrSourceImages(string type, string id, Dictionary<string, string> images)
    {
        var bs = BlobStorage.MakeDefaultBlobStorage();
        var template = BlobStorage.GetAzureBlobAsString("admin", "image_selector.tmpl");
        var sb = new StringBuilder();
        Random rnd = new Random();
        sb.Append(RenderCategoryOrSourceImages(type, images, rnd));
        var html = template.Replace("__ID__", id);
        html = html.Replace("__HOST__", ElmcityUtils.Configurator.appdomain);
        html = html.Replace("__TYPE__", type);
        html = html.Replace("__BODY__", sb.ToString());
        //File.WriteAllText(@"c:\users\jon\dev\" + type + "_images_" + id + ".html", html);
        bs.PutBlob(id, type + "_images.html", html, "text/html");
    }