Show / Hide Table of Contents

Class InMemoryFileSystem

An in-memory file system implementation

Inheritance
Object
InMemoryFileSystem
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace:FubarDev.WebDavServer.FileSystem.InMemory
Assembly:FubarDev.WebDavServer.FileSystem.InMemory.dll
Syntax
public class InMemoryFileSystem : IFileSystem, IMountPointManager, IMountPointProvider

Constructors

| Improve this Doc View Source

InMemoryFileSystem(ICollection, IPathTraversalEngine, ISystemClock, ILockManager, IPropertyStoreFactory)

Initializes a new instance of the InMemoryFileSystem class.

Declaration
public InMemoryFileSystem([CanBeNull] ICollection mountPoint, [NotNull] IPathTraversalEngine pathTraversalEngine, [NotNull] ISystemClock systemClock, ILockManager lockManager = null, IPropertyStoreFactory propertyStoreFactory = null)
Parameters
Type Name Description
ICollection mountPoint

The mount point where this file system should be included

IPathTraversalEngine pathTraversalEngine

The engine to traverse paths

ISystemClock systemClock

Interface for the access to the systems clock

ILockManager lockManager

The global lock manager

IPropertyStoreFactory propertyStoreFactory

The store for dead properties

Properties

| Improve this Doc View Source

IsReadOnly

Gets or sets a value indicating whether the file system is read-only.

Declaration
public bool IsReadOnly { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

LockManager

Gets the global lock manager

Declaration
public ILockManager LockManager { get; }
Property Value
Type Description
ILockManager
Implements
IFileSystem.LockManager
| Improve this Doc View Source

MountPoints

Gets all mount points

Declaration
public IEnumerable<Uri> MountPoints { get; }
Property Value
Type Description
IEnumerable<Uri>
Implements
IMountPointProvider.MountPoints
| Improve this Doc View Source

PropertyStore

Gets the property store to be used for the file system.

Declaration
public IPropertyStore PropertyStore { get; }
Property Value
Type Description
IPropertyStore
Implements
IFileSystem.PropertyStore
| Improve this Doc View Source

Root

Gets the root collection

Declaration
public AsyncLazy<ICollection> Root { get; }
Property Value
Type Description
AsyncLazy<ICollection>
Implements
IFileSystem.Root
| Improve this Doc View Source

RootCollection

Gets the root collection

Declaration
[NotNull]
public InMemoryDirectory RootCollection { get; }
Property Value
Type Description
InMemoryDirectory
| Improve this Doc View Source

SupportsRangedRead

Gets a value indicating whether the file system allows seeking and partial reading.

Declaration
public bool SupportsRangedRead { get; }
Property Value
Type Description
Boolean
Implements
IFileSystem.SupportsRangedRead
| Improve this Doc View Source

SystemClock

Gets the systems clock

Declaration
public ISystemClock SystemClock { get; }
Property Value
Type Description
ISystemClock

Methods

| Improve this Doc View Source

Mount(Uri, IFileSystem)

Mount a source to a destination

Declaration
public void Mount(Uri source, IFileSystem destination)
Parameters
Type Name Description
Uri source

The source path

IFileSystem destination

The destination file system

Implements
IMountPointManager.Mount(Uri, IFileSystem)
| Improve this Doc View Source

SelectAsync(String, CancellationToken)

Finds an entry for a given path

Declaration
public Task<SelectionResult> SelectAsync(string path, CancellationToken ct)
Parameters
Type Name Description
String path

The root-relative path

CancellationToken ct

The cancellation token

Returns
Type Description
Task<SelectionResult>

The result of the search operation

Implements
IFileSystem.SelectAsync(String, CancellationToken)
| Improve this Doc View Source

TryGetMountPoint(Uri, out IFileSystem)

Try to get a mount point for a given path

Declaration
public bool TryGetMountPoint(Uri path, out IFileSystem destination)
Parameters
Type Name Description
Uri path

The path to get the destination file system for

IFileSystem destination

The destination file system

Returns
Type Description
Boolean

true when there is a destination file system for a path

Implements
IMountPointProvider.TryGetMountPoint(Uri, out IFileSystem)
| Improve this Doc View Source

Unmount(Uri)

Removes a mount from the source

Declaration
public void Unmount(Uri source)
Parameters
Type Name Description
Uri source

The source path

Implements
IMountPointManager.Unmount(Uri)
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX