Class EntryExtensions
Extension methods for IEntry implementations
Inherited Members
Namespace:FubarDev.WebDavServer.FileSystem
Assembly:FubarDev.WebDavServer.dll
Syntax
public static class EntryExtensions
Methods
| Improve this Doc View SourceGetEntityTagAsync(IEntry, CancellationToken)
Gets the EntityTag for the entry
Declaration
public static Task<EntityTag? > GetEntityTagAsync(this IEntry entry, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IEntry | entry | The entry to get the EntityTag for |
CancellationToken | cancellationToken | The cancellation token |
Returns
Type | Description |
---|---|
Task<Nullable<EntityTag>> | The entity tag for the entry |
Remarks
The return value might be null, when no property store was defined.
GetProperties(IEntry, IWebDavDispatcher, Nullable<Int32>, Boolean)
Gets all predefined properties for the given entry, provided by the given dispatcher.
Declaration
public static IAsyncEnumerable<IUntypedReadableProperty> GetProperties(this IEntry entry, IWebDavDispatcher dispatcher, int ? maxCost = null, bool returnInvalidProperties = false)
Parameters
Type | Name | Description |
---|---|---|
IEntry | entry | The entry to get the properties for |
IWebDavDispatcher | dispatcher | The dispatcher that provides the predefined properties |
Nullable<Int32> | maxCost | The maximum cost for querying a properties value |
Boolean | returnInvalidProperties | Do we want to get invalid live properties? |
Returns
Type | Description |
---|---|
System.Collections.Generic.IAsyncEnumerable<IUntypedReadableProperty> | The async enumerable of all property (including the property store when the maxCost allows it) |