public static byte[] ExportProcessDescriptors(WfExportProcessDescriptorParams exportParams, params string[] processDespKeys) { using (MemoryStream outputStream = new MemoryStream()) { ExportProcessDescriptors(exportParams, outputStream, processDespKeys); outputStream.Flush(); return outputStream.ToArray(); } }
public static byte[] ExportProcessDescriptors(WfExportProcessDescriptorParams exportParams, params string[] processDespKeys) { using (MemoryStream outputStream = new MemoryStream()) { ExportProcessDescriptors(exportParams, outputStream, processDespKeys); outputStream.Flush(); return(outputStream.ToArray()); } }
public static void ExportProcessDescriptors(WfExportProcessDescriptorParams exportParams, Stream outputStream, params string[] processDespKeys) { exportParams.NullCheck("exportParams"); processDespKeys.NullCheck("processDespKeys"); WfExportProcessDescriptorContext context = new WfExportProcessDescriptorContext(exportParams); using (Package package = ZipPackage.Open(outputStream, FileMode.Create)) { foreach (string key in processDespKeys) { WfProcessDescriptor processDesp = (WfProcessDescriptor)WfProcessDescriptorManager.LoadDescriptor(key); ExportProcessPart(package, processDesp, context); ExportMatrixPart(package, processDesp, context); } ExportMappingPart(package, context); } }
public WfExportProcessDescriptorContext(WfExportProcessDescriptorParams exportParams) { exportParams.NullCheck("exportParams"); this._ExportParams = exportParams; }