Class ServiceCollectionExtensions
Extension methods for IService
Inherited Members
Namespace: SixLabors.ImageSharp.Web.DependencyInjection
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public static class ServiceCollectionExtensions
Methods
| Improve this Doc View SourceAddImageSharp(IServiceCollection)
Adds ImageSharp services to the specified IService
Declaration
public static IImageSharpBuilder AddImageSharp(this IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The IService |
Returns
Type | Description |
---|---|
IImageSharpBuilder | An IImage |
AddImageSharp(IServiceCollection, Action<ImageSharpMiddlewareOptions>)
Adds ImageSharp services to the specified IService
Declaration
public static IImageSharpBuilder AddImageSharp(this IServiceCollection services, Action<ImageSharpMiddlewareOptions> setupAction)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The IService |
Action<ImageSharpMiddlewareOptions> | setupAction | An Action<T> to configure the provided Image |
Returns
Type | Description |
---|---|
IImageSharpBuilder | An IImage |