Unosquare
    Show / Hide Table of Contents

    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 info.

    IEnumerable<MappedResourceInfo> entries

    An enumeration of the entries in the directory represented by info.

    Stream stream

    A to which the directory listing must be written.

    CancellationToken cancellationToken

    A used to cancel the operation.

    Returns
    Type Description
    Task

    A representing the ongoing operation.

    Comments

    Back to top Copyright © 2017-2019 Unosquare