public static void ExportFromContext(IReadOnlyZetboxContext ctx, Stream stream, string[] schemaModules, string[] ownerModules, string streamDescription) { using (var s = new StreamPackageProvider(stream, BasePackageProvider.Modes.Write, streamDescription)) { ExportFromContext(ctx, s, schemaModules, ownerModules); } }
public static void LoadFromXml(IZetboxContext ctx, Stream stream, string streamDescription) { using (var s = new StreamPackageProvider(stream, BasePackageProvider.Modes.Read, streamDescription)) { LoadFromXml(ctx, s); } }
public static void PublishFromContext(IZetboxContext ctx, Stream stream, string[] ownerModules, string streamDescription) { using (var s = new StreamPackageProvider(stream, BasePackageProvider.Modes.Write, streamDescription)) { PublishFromContext(ctx, s, ownerModules); } }
public static IEnumerable<IPersistenceObject> LoadFromXml(IZetboxContext ctx, Stream stream, string streamDescription) { using (var s = new StreamPackageProvider(stream, BasePackageProvider.Modes.Read, streamDescription)) { return LoadFromXml(ctx, s); } }