• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Web
      • CaseHandlingUriBuilder
      • CaseHandlingUriBuilder.CaseHandling
      • CommandHandling
      • ExifOrientationUtilities
      • Format
      • FormatCommand
      • FormatUtilities
      • FormattedImage
      • HMACUtilities
      • ImageCacheMetadata
      • ImageMetadata
      • RequestAuthorizationUtilities
      • Resampler
      • ResamplerCommand
    • SixLabors.ImageSharp.Web.Caching
      • ICacheHash
      • ICacheKey
      • IImageCache
      • LegacyV1CacheKey
      • PhysicalFileSystemCache
      • PhysicalFileSystemCacheOptions
      • SHA256CacheHash
      • UriAbsoluteCacheKey
      • UriAbsoluteLowerInvariantCacheKey
      • UriRelativeCacheKey
      • UriRelativeLowerInvariantCacheKey
    • SixLabors.ImageSharp.Web.Commands
      • CommandCollection
      • CommandCollectionExtensions
      • CommandParser
      • IRequestParser
      • PresetOnlyQueryCollectionRequestParser
      • PresetOnlyQueryCollectionRequestParserOptions
      • QueryCollectionRequestParser
    • SixLabors.ImageSharp.Web.Commands.Converters
      • ArrayConverter<T>
      • ColorConverter
      • EnumConverter
      • ICommandConverter
      • ICommandConverter<T>
      • IntegralNumberConverter<T>
      • ListConverter<T>
      • SimpleCommandConverter<T>
    • SixLabors.ImageSharp.Web.DependencyInjection
      • ApplicationBuilderExtensions
      • IImageSharpBuilder
      • ImageSharpBuilderExtensions
      • ServiceCollectionExtensions
    • SixLabors.ImageSharp.Web.Middleware
      • ImageCommandContext
      • ImageProcessingContext
      • ImageSharpMiddleware
      • ImageSharpMiddlewareOptions
    • SixLabors.ImageSharp.Web.Processors
      • AutoOrientWebProcessor
      • BackgroundColorWebProcessor
      • FormatWebProcessor
      • IImageWebProcessor
      • QualityWebProcessor
      • ResizeWebProcessor
    • SixLabors.ImageSharp.Web.Providers
      • FileProviderImageProvider
      • IImageProvider
      • PhysicalFileSystemProvider
      • PhysicalFileSystemProviderOptions
      • ProcessingBehavior
      • WebRootImageProvider
    • SixLabors.ImageSharp.Web.Resolvers
      • FileProviderImageResolver
      • IImageCacheResolver
      • IImageResolver
      • PhysicalFileSystemCacheResolver
    • SixLabors.ImageSharp.Web.Synchronization
      • AsyncKeyLock<TKey>
      • AsyncKeyReaderWriterLock<TKey>
      • AsyncLock
      • AsyncReaderWriterLock
      • RefCountedConcurrentDictionary<TKey, TValue>
    • SixLabors.ImageSharp.Web.TagHelpers
      • HmacTokenTagHelper
      • ImageTagHelper

    Class FileProviderImageProvider

    Returns images from an IFileProvider abstraction.

    Inheritance
    object
    FileProviderImageProvider
    PhysicalFileSystemProvider
    WebRootImageProvider
    Implements
    IImageProvider
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SixLabors.ImageSharp.Web.Providers
    Assembly: SixLabors.ImageSharp.Web.dll
    Syntax
    public abstract class FileProviderImageProvider : IImageProvider

    Constructors

    | Edit this page View Source

    FileProviderImageProvider(IFileProvider, ProcessingBehavior, FormatUtilities)

    Initializes a new instance of the FileProviderImageProvider class.

    Declaration
    protected FileProviderImageProvider(IFileProvider fileProvider, ProcessingBehavior processingBehavior, FormatUtilities formatUtilities)
    Parameters
    Type Name Description
    IFileProvider fileProvider

    The file provider.

    ProcessingBehavior processingBehavior

    The processing behavior.

    FormatUtilities formatUtilities

    Contains various format helper methods based on the current configuration.

    Properties

    | Edit this page View Source

    Match

    Gets or sets the method used by the resolver to identify itself as the correct resolver to use.

    Declaration
    public virtual Func<HttpContext, bool> Match { get; set; }
    Property Value
    Type Description
    Func<HttpContext, bool>
    | Edit this page View Source

    ProcessingBehavior

    Gets the processing behavior.

    Declaration
    public ProcessingBehavior ProcessingBehavior { get; }
    Property Value
    Type Description
    ProcessingBehavior

    Methods

    | Edit this page View Source

    GetAsync(HttpContext)

    Gets the image resolver associated with the context.

    Declaration
    public Task<IImageResolver?> GetAsync(HttpContext context)
    Parameters
    Type Name Description
    HttpContext context

    The current HTTP request context.

    Returns
    Type Description
    Task<IImageResolver>

    The IImageResolver.

    | Edit this page View Source

    IsValidRequest(HttpContext)

    Gets a value indicating whether the current request passes sanitizing rules.

    Declaration
    public virtual bool IsValidRequest(HttpContext context)
    Parameters
    Type Name Description
    HttpContext context

    The current HTTP request context.

    Returns
    Type Description
    bool

    The bool

    Implements

    IImageProvider
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX