public static Grab ( string dir, string file, string container, string blobUrl ) : void | ||
dir | string | |
file | string | |
container | string | |
blobUrl | string | |
return | void |
public static void Initialize() { //First get a reference to the local file structure. localStorage = RoleEnvironment.GetLocalResource("scratchpad"); //Check to see if we have already grabbed the component files. if (!CloudBackedStore.DirectoryExists(ComponetDir)) { var url = string.Format("http://{0}.blob.core.windows.net/components/", RoleEnvironment.GetConfigurationSettingValue("StorageName")); foreach (var app in OdpiAppRepo.Apps) { if (!string.IsNullOrEmpty(app.PackageName)) { CloudBackedStore.Grab(ComponetDir, "\\" + app.PackageName, "components", url + app.PackageName); } if (!string.IsNullOrEmpty(app.ConfName)) { CloudBackedStore.Grab(ComponetDir, "\\" + app.ConfName, "components", url + app.ConfName); } var req = app.RequiredFiles; if (req != null) { foreach (var file in req) { CloudBackedStore.Grab(ComponetDir, "\\" + file, "components", url + file); } } } } }
public static void Initialize() { if (!CloudBackedStore.DirectoryExists(CertDir)) { var url = string.Format("http://{0}.blob.core.windows.net/components/", RoleEnvironment.GetConfigurationSettingValue("StorageName")); CloudBackedStore.Grab(CertDir, "\\makecert.exe", "components", url + "makecert.exe"); } }