Interface IDirectoryLister
Represents an object that can render a directory listing to a stream.
Namespace: EmbedIO.Files
Syntax
public interface IDirectoryLister
Properties
ContentType
Gets the MIME type of generated directory listings.
Declaration
string ContentType { get; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
ListDirectoryAsync(MappedResourceInfo, String, IEnumerable<MappedResourceInfo>, Stream, CancellationToken)
Asynchronously generate a directory listing.
Declaration
Task ListDirectoryAsync(MappedResourceInfo info, string absolutePath, IEnumerable<MappedResourceInfo> entries, Stream stream, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| MappedResourceInfo | info | A MappedResourceInfo containing information about the directory which is to be listed. |
| String | absolutePath | The absolute URL path that was mapped to |
| IEnumerable<MappedResourceInfo> | entries | An enumeration of the entries in the directory represented by |
| Stream | stream | A |
| CancellationToken | cancellationToken | A |
Returns
| Type | Description |
|---|---|
| Task | A |