public static string GetIconStateId(PackageState state) { return(state.ToString().ToLower()); }
private CatalogStorage GetStorage(PackageState state) { return(GetStorage(state.ToString())); }
private static string GetStatePath(string feedPath, PackageState packageState) { return(Path.Combine(feedPath, "." + packageState.ToString().ToLower())); }
public Task SetState(CanonicalName packageName, PackageState state) { return EPM.SetGeneralPackageInformation(50, packageName, "state", state.ToString()); }
public static string GetPartitionKey(PackageState packageState) { return(string.Format("pkg*{0}", packageState.ToString().ToLower())); }
private static string GetDirectoryPath(PackageState packageState, string userName) { return(string.Format("pkg/{0}/{1}", packageState.ToString().ToLower(), userName)); }