Class ArasVaultConnection
Class for uploading files to and downloading files from an Aras vault
Inheritance
System.Object
ArasVaultConnection
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Innovator.Client.Connection
Assembly: Innovator.Client.dll
Syntax
public class ArasVaultConnection
Constructors
| Improve this Doc View SourceArasVaultConnection(IArasConnection)
Initializes a new instance of the ArasVaultConnection class for a given IArasConnection
Declaration
public ArasVaultConnection(IArasConnection conn)
Parameters
Type | Name | Description |
---|---|---|
IArasConnection | conn | The corresponding IArasConnection. |
Properties
| Improve this Doc View SourceVaultStrategy
Gets or sets the vault strategy for determining which vaults to read from and write to for a given IAsyncConnection
Declaration
public IVaultStrategy VaultStrategy { get; set; }
Property Value
Type | Description |
---|---|
IVaultStrategy | The vault strategy. |
Methods
| Improve this Doc View SourceDownload(Command, Boolean)
Downloads the specified file.
Declaration
public IPromise<Stream> Download(Command request, bool async)
Parameters
Type | Name | Description |
---|---|---|
Command | request | The file to download. |
System.Boolean | async | if set to |
Returns
Type | Description |
---|---|
IPromise<System.IO.Stream> | A promise to return a stream of the file's bytes |
InitializeStrategy()
Initializes the strategy.
Declaration
public void InitializeStrategy()
Upload(UploadCommand, Boolean)
Uploads the specified file to the vault.
Declaration
public IPromise<Stream> Upload(UploadCommand upload, bool async)
Parameters
Type | Name | Description |
---|---|---|
UploadCommand | upload | The file to upload. |
System.Boolean | async | if set to |
Returns
Type | Description |
---|---|
IPromise<System.IO.Stream> | A promise to return a stream of the resulting AML |