Show / Hide Table of Contents

Class InMemoryEntry

Am in-memory implementation of a WebDAV entry (collection or document)

Inheritance
Object
InMemoryEntry
InMemoryDirectory
InMemoryFile
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 abstract class InMemoryEntry : IEntry, IEntityTagEntry

Constructors

| Improve this Doc View Source

InMemoryEntry(InMemoryFileSystem, ICollection, Uri, String)

Initializes a new instance of the InMemoryEntry class.

Declaration
protected InMemoryEntry(InMemoryFileSystem fileSystem, ICollection parent, Uri path, string name)
Parameters
Type Name Description
InMemoryFileSystem fileSystem

The file system this entry belongs to

ICollection parent

The parent collection

Uri path

The root-relative path of this entry

String name

The name of the entry

Properties

| Improve this Doc View Source

CreationTimeUtc

Gets the time this entry was created

Declaration
public DateTime CreationTimeUtc { get; protected set; }
Property Value
Type Description
DateTime
Implements
IEntry.CreationTimeUtc
| Improve this Doc View Source

ETag

Gets the EntityTag for a IDocument or ICollection

Declaration
public EntityTag ETag { get; protected set; }
Property Value
Type Description
EntityTag
Implements
IEntityTagEntry.ETag
| Improve this Doc View Source

FileSystem

Gets the file system of this entry

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

InMemoryFileSystem

Gets the file system

Declaration
[NotNull]
protected InMemoryFileSystem InMemoryFileSystem { get; }
Property Value
Type Description
InMemoryFileSystem
| Improve this Doc View Source

InMemoryParent

Gets the parent collection

Declaration
[CanBeNull]
protected InMemoryDirectory InMemoryParent { get; }
Property Value
Type Description
InMemoryDirectory
| Improve this Doc View Source

LastWriteTimeUtc

Gets the last time this entry was modified

Declaration
public DateTime LastWriteTimeUtc { get; protected set; }
Property Value
Type Description
DateTime
Implements
IEntry.LastWriteTimeUtc
| Improve this Doc View Source

Name

Gets the name of the entry

Declaration
public string Name { get; }
Property Value
Type Description
String
Implements
IEntry.Name
| Improve this Doc View Source

Parent

Gets the collection that contains this entry

Declaration
public ICollection Parent { get; }
Property Value
Type Description
ICollection
Implements
IEntry.Parent
Remarks

This property can be null when this entry is the root collection.

| Improve this Doc View Source

Path

Gets the path of the entry

Declaration
public Uri Path { get; }
Property Value
Type Description
Uri
Implements
IEntry.Path

Methods

| Improve this Doc View Source

DeleteAsync(CancellationToken)

Deletes this entry

Declaration
public abstract Task<DeleteResult> DeleteAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken

The cancellation token

Returns
Type Description
Task<DeleteResult>

The result of the delete operation

Implements
IEntry.DeleteAsync(CancellationToken)
| Improve this Doc View Source

SetCreationTimeUtcAsync(DateTime, CancellationToken)

Sets the creation time

Declaration
public Task SetCreationTimeUtcAsync(DateTime creationTime, CancellationToken cancellationToken)
Parameters
Type Name Description
DateTime creationTime

The new creation time

CancellationToken cancellationToken

The cancellation token

Returns
Type Description
Task

The async task

Implements
IEntry.SetCreationTimeUtcAsync(DateTime, CancellationToken)
| Improve this Doc View Source

SetLastWriteTimeUtcAsync(DateTime, CancellationToken)

Sets the last write time

Declaration
public Task SetLastWriteTimeUtcAsync(DateTime lastWriteTime, CancellationToken cancellationToken)
Parameters
Type Name Description
DateTime lastWriteTime

The new last write time

CancellationToken cancellationToken

The cancellation token

Returns
Type Description
Task

The async task

Implements
IEntry.SetLastWriteTimeUtcAsync(DateTime, CancellationToken)
| Improve this Doc View Source

UpdateETagAsync(CancellationToken)

Enforces the update of an EntityTag

Declaration
public Task<EntityTag> UpdateETagAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken

The cancellation token

Returns
Type Description
Task<EntityTag>

The new EntityTag

Implements
IEntityTagEntry.UpdateETagAsync(CancellationToken)
Remarks

This is usually called when the IEntry properties were changed.

  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX