Exemple #1
0
 // object -> XML
 static XElement AppToXElement(AppMetadata aApp)
 {
     return
         new XElement("app",
             new XElement("name", aApp.AppName),
             new XElement("installPending", aApp.InstallPending),
             new XElement("deletePending", aApp.DeletePending),
             new XElement("localInstallationLocation", aApp.LocalInstallLocation),
             new XElement("updateUrl", aApp.UpdateUrl),
             new XElement("autoUpdate", aApp.AutoUpdate),
             new XElement("grantedPermissions",
                 aApp.GrantedPermissions.Select(aPermission=>new XElement("permission", aPermission))),
             new XElement("udn", aApp.Udn),
             new XElement("friendlyName", aApp.FriendlyName),
             FormatLastModifiedElement(aApp.LastModified));
 }
Exemple #2
0
 public void WriteAppMetadata(AppMetadata value)
 {
     if (value.AppName != AppName)
     {
         throw new ArgumentException("AppMetadata has incorrect AppName");
     }
     iMetadataStore.PutApp(value);
 }
Exemple #3
0
 public void PutApp(AppMetadata aApp)
 {
     iDiskStore.PutFile(aApp.AppName, aApp);
 }