private NAppUpdate.Framework.Sources.IUpdateSource PrepareUpdateSource() { // Normally this would be a web based source. // But for the demo app, we prepare an in-memory source. var source = new NAppUpdate.Framework.Sources.MemorySource(File.ReadAllText("SampleAppUpdateFeed.xml")); source.AddTempFile(new Uri("http://SomeSite.com/Files/NewVersion.txt"), "NewVersion.txt"); return source; }
private NAppUpdate.Framework.Sources.IUpdateSource PrepareUpdateSource() { // Normally this would be a web based source. // But for the demo app, we prepare an in-memory source. var source = new NAppUpdate.Framework.Sources.MemorySource(File.ReadAllText("SampleAppUpdateFeed.xml")); source.AddTempFile(new Uri("http://SomeSite.com/Files/NewVersion.txt"), "NewVersion.txt"); return(source); }