Class LocalStorageContext
This class contains properties related to the storage service interfaces within the application.
Inheritance
System.Object
LocalStorageContext
Implements
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: Talegen.Storage.Net.Core.Disk
Assembly: Talegen.Storage.Net.Core.dll
Syntax
public class LocalStorageContext : IStorageContext
Constructors
| Improve this Doc View SourceLocalStorageContext(String, Boolean)
Initializes a new instance of the LocalStorageContext class.
Declaration
public LocalStorageContext(string workspacePath = "", bool uniqueWorkspace = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | workspacePath | Contains an the root workspace folder Uri path string. |
System.Boolean | uniqueWorkspace | Contains a value indicating whether the storage service shall use a unique workspace sub-folder. |
LocalStorageContext(Uri, Boolean)
Initializes a new instance of the LocalStorageContext class.
Declaration
public LocalStorageContext(Uri workspaceUri, bool uniqueWorkspace = true)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | workspaceUri | Contains a root workspace folder Uri. |
System.Boolean | uniqueWorkspace | Contains a value indicating whether the storage service shall use a unique workspace sub-folder. |
Properties
| Improve this Doc View SourceRootWorkspaceLocalFolderPath
Gets the local folder path representation of the root workspace folder Uri.
Declaration
public string RootWorkspaceLocalFolderPath { get; }
Property Value
Type | Description |
---|---|
System.String |
StorageType
Gets the storage type of the context.
Declaration
public string StorageType { get; }
Property Value
Type | Description |
---|---|
System.String |
UniqueWorkspace
Gets a value indicating whether the storage service shall use a unique workspace sub-folder.
Declaration
public bool UniqueWorkspace { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
WorkspaceUri
Gets the root storage workspace URI path.
Declaration
public Uri WorkspaceUri { get; }
Property Value
Type | Description |
---|---|
System.Uri |