Contact us

Applies to: Customer's Canvas On-Premises; Design Atoms .NET 7.4

Skip to main content

Class BaseArchive

Namespace: Aurigma.DesignAtoms.Storage

Assembly: Aurigma.DesignAtoms.dll

Syntax
public abstract class BaseArchive : IDisposable

Inheritance: System.Object -> BaseArchive

Implements​

  • Aurigma.DesignAtoms.Cache.Abstractions.Interfaces.ISerializableStorage
  • System.IDisposable

Inherited Members​

  • System.Object.ToString
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone

Constructors​

BaseArchive​

protected BaseArchive()

Methods​

AddFileWithId​

public void AddFileWithId(string fileId, string filePath, bool isSource = false)

Parameters​

TypeNameDescription
System.StringfileId
System.StringfilePath
System.BooleanisSource

AddFileWithId​

public abstract void AddFileWithId(string fileId, Stream fileData, bool isSource = false)

Parameters​

TypeNameDescription
System.StringfileId
System.IO.StreamfileData
System.BooleanisSource

GetReadStream​

public abstract Stream GetReadStream(string fileId, bool isSource = false)

Parameters​

TypeNameDescription
System.StringfileId
System.BooleanisSource

Returns​

System.IO.Stream

FileExists​

public abstract bool FileExists(string fileId)

Parameters​

TypeNameDescription
System.StringfileId

Returns​

System.Boolean

UpdateLastAccessTime​

public abstract void UpdateLastAccessTime(string fileId)

Parameters​

TypeNameDescription
System.StringfileId

WriteToStream​

public abstract void WriteToStream(string fileId, Action<Stream> action)

Parameters​

TypeNameDescription
System.StringfileId
System.Action<System.IO.Stream>action

Dispose​

public abstract void Dispose()

GetFileList​

public abstract string[] GetFileList()

Returns​

System.String[]

GetFileList​

public string[] GetFileList(string path)

Parameters​

TypeNameDescription
System.Stringpath

Returns​

System.String[]

CreateArchive​

public static BaseArchive CreateArchive(Stream stream)

Parameters​

TypeNameDescription
System.IO.Streamstream

Returns​

Aurigma.DesignAtoms.Storage.BaseArchive

Was this page helpful?