Xap archiver was designed as extensible component. You can write your own Elisy.Web.Xap.IFile implementations or derive your classes from Elisy.Web.Xap.File class. As example you can find AppManifest class implementation in the attachment. This class shows how to write AppManifest file into the xap package. This class will be included into the future release of the Elisy.Web.dll assembly.
Now xap archiver call in http-handler ProcessRequest method can be rewrited in the following form:
context.Response.ContentType = "application/x-zip-compressed";
Package xap = new Package();
AppManifest appManifest = new AppManifest();
appManifest.EntryPointAssembly = "TestBarcode";
appManifest.EntryPointType = "TestBarcode.App";
appManifest.AssemblyParts.Add(new AssemblyPart("TestBarcode", "TestBarcode.dll"));
appManifest.AssemblyParts.Add(new AssemblyPart("Elisy.Barcode", "Elisy.Barcode.dll"));
xap.Files.Add(appManifest);
AppManifest.cs (1.58 kb)
AppManifest.xaml (262.00 bytes)
AssemblyPart.cs (537.00 bytes)
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5