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.ISerializableStorageSystem.IDisposable
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Constructors
BaseArchive
protected BaseArchive()
Methods
AddFileWithId
public void AddFileWithId(string fileId, string filePath, bool isSource = false)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | fileId | |
System.String | filePath | |
System.Boolean | isSource |
AddFileWithId
public abstract void AddFileWithId(string fileId, Stream fileData, bool isSource = false)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | fileId | |
System.IO.Stream | fileData | |
System.Boolean | isSource |
GetReadStream
public abstract Stream GetReadStream(string fileId, bool isSource = false)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | fileId | |
System.Boolean | isSource |
Returns
System.IO.Stream
FileExists
public abstract bool FileExists(string fileId)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | fileId |
Returns
System.Boolean
UpdateLastAccessTime
public abstract void UpdateLastAccessTime(string fileId)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | fileId |
WriteToStream
public abstract void WriteToStream(string fileId, Action<Stream> action)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | fileId | |
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
| Type | Name | Description |
|---|---|---|
System.String | path |
Returns
System.String[]
CreateArchive
public static BaseArchive CreateArchive(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
System.IO.Stream | stream |