EyeAuras Docs EyeAuras Docs
EyeAuras Docs EyeAuras Docs
DocFX + Singulink = ♥

Search Results for

    Method CreateFileProvider

    CreateFileProvider(string)

    Creates a file provider for static assets used in the BlazorWebView. The default implementation serves files from disk. Override this method to return a custom IFileProvider to serve assets such as wwwroot/index.html. Call the base method and combine its return value with a CompositeFileProvider to use both custom assets and default assets.

    Declaration
    public override IFileProvider CreateFileProvider(string contentRootDir)
    Parameters
    Type Name Description
    string contentRootDir

    The base directory to use for all requested assets, such as wwwroot.

    Returns
    Type Description
    IFileProvider

    Returns a IFileProvider for static assets.

    Overrides
    BlazorWebView.CreateFileProvider(string)
    © Xab3r. All rights reserved.