Provides methods to import and export packages More...
Public Member Functions | |
byte[] | ExportPackageToBytes (string sessionId, SpaPackageIdentity packageIdentity) |
Exports the package as a byte[]. More... | |
void | ExportPackageToFile (string sessionId, SpaPackageIdentity packageIdentity, string fileLocationToSave) |
Exports the package to the specified file location on the TotalAgility server. More... | |
SpaPackageImportResult | ImportPackageFromBytes (string sessionId, byte[] packageData, SpaPackageImportOptions3 importOptions) |
Imports the package from a byte[]. More... | |
PackageImportResult | ImportPackageFromFile (string sessionId, string packageDataPath, SpaPackageImportOptions3 importOptions) |
Imports the package located in the specified file path on the TotalAgility server. More... | |
Provides methods to import and export packages
byte [] ExportPackageToBytes | ( | string | sessionId, |
SpaPackageIdentity | packageIdentity | ||
) |
Exports the package as a byte[].
sessionId | A string that uniquely identifies the session for the current logged on user. An exception will be raised for an invalid sessionId. |
packageIdentity | A Package object containing the details of the package to be exported. |
void ExportPackageToFile | ( | string | sessionId, |
SpaPackageIdentity | packageIdentity, | ||
string | fileLocationToSave | ||
) |
Exports the package to the specified file location on the TotalAgility server.
sessionId | A string that uniquely identifies the session for the current logged on user. An exception will be raised for an invalid sessionId. |
packageIdentity | A Package object containing the details of the package to be exported |
fileLocationToSave | The file location to save the package ZIP file. |
SpaPackageImportResult ImportPackageFromBytes | ( | string | sessionId, |
byte[] | packageData, | ||
SpaPackageImportOptions3 | importOptions | ||
) |
Imports the package from a byte[].
sessionId | A string that uniquely identifies the session for the current logged on user. An exception will be raised for an invalid sessionId. |
packageData | The package data that needs to be imported. while importing LastModified date and version is updated with package data Last Modified Date and Version. |
importOptions | An ImportOptions object containing the package import options to be considered while importing the package. |
PackageImportResult ImportPackageFromFile | ( | string | sessionId, |
string | packageDataPath, | ||
SpaPackageImportOptions3 | importOptions | ||
) |
Imports the package located in the specified file path on the TotalAgility server.
sessionId | A string that uniquely identifies the session for the current logged on user. An exception will be raised for an invalid sessionId. |
packageDataPath | Location at which the package ZIP file is present. |
importOptions | An ImportOptions object containing the package import options to be considered while importing the package. |