• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Web
      • FormattedImage
      • FormatUtilities
      • ImageCacheMetadata
      • ImageMetadata
    • SixLabors.ImageSharp.Web.Caching
      • CacheHash
      • ICacheHash
      • IImageCache
      • PhysicalFileSystemCache
      • PhysicalFileSystemCacheOptions
    • SixLabors.ImageSharp.Web.Commands
      • CommandParser
      • DictionaryExtensions
      • IRequestParser
      • PresetOnlyQueryCollectionRequestParser
      • PresetOnlyQueryCollectionRequestParserOptions
      • QueryCollectionRequestParser
    • SixLabors.ImageSharp.Web.Commands.Converters
      • ICommandConverter
      • ICommandConverter<T>
    • SixLabors.ImageSharp.Web.DependencyInjection
      • ApplicationBuilderExtensions
      • IImageSharpBuilder
      • ImageSharpBuilderExtensions
      • ImageSharpConfiguration
      • ServiceCollectionExtensions
    • SixLabors.ImageSharp.Web.Middleware
      • ConcurrentDictionaryExtensions
      • ImageCommandContext
      • ImageProcessingContext
      • ImageSharpMiddleware
      • ImageSharpMiddlewareOptions
    • SixLabors.ImageSharp.Web.Processors
      • BackgroundColorWebProcessor
      • FormatWebProcessor
      • IImageWebProcessor
      • JpegQualityWebProcessor
      • ResizeWebProcessor
    • SixLabors.ImageSharp.Web.Providers
      • IImageProvider
      • PhysicalFileSystemProvider
      • ProcessingBehavior
    • SixLabors.ImageSharp.Web.Resolvers
      • IImageCacheResolver
      • IImageResolver
      • PhysicalFileSystemCacheResolver
      • PhysicalFileSystemResolver
    • SixLabors.ImageSharp.Web.Synchronization
      • AsyncKeyLock<TKey>
      • AsyncKeyReaderWriterLock<TKey>
      • AsyncLock
      • AsyncReaderWriterLock
      • RefCountedConcurrentDictionary<TKey, TValue>

    Class ServiceCollectionExtensions

    Extension methods for IServiceCollection to simplify middleware service registration.

    Inheritance
    Object
    ServiceCollectionExtensions
    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.DependencyInjection
    Assembly: SixLabors.ImageSharp.Web.dll
    Syntax
    public static class ServiceCollectionExtensions

    Methods

    | Improve this Doc View Source

    AddImageSharp(IServiceCollection)

    Adds ImageSharp services to the specified IServiceCollection with the default options.

    Declaration
    public static IImageSharpBuilder AddImageSharp(this IServiceCollection services)
    Parameters
    Type Name Description
    IServiceCollection services

    The IServiceCollection to add services to.

    Returns
    Type Description
    IImageSharpBuilder

    An IImageSharpBuilder that can be used to further configure the ImageSharp services.

    | Improve this Doc View Source

    AddImageSharp(IServiceCollection, Action<ImageSharpMiddlewareOptions>)

    Adds ImageSharp services to the specified IServiceCollection with the given options.

    Declaration
    public static IImageSharpBuilder AddImageSharp(this IServiceCollection services, Action<ImageSharpMiddlewareOptions> setupAction)
    Parameters
    Type Name Description
    IServiceCollection services

    The IServiceCollection to add services to.

    Action<ImageSharpMiddlewareOptions> setupAction

    An Action<T> to configure the provided ImageSharpMiddlewareOptions.

    Returns
    Type Description
    IImageSharpBuilder

    An IImageSharpBuilder that can be used to further configure the ImageSharp services.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX