Class ServiceCollectionExtensions
Registration helpers for adding CoreUpload services to the ASP.NET Core dependency injection container.
Inherited Members
Namespace: CoreUpload.Configuration
Assembly: CoreUpload.dll
Syntax
public static class ServiceCollectionExtensions
Methods
AddCoreUpload(IServiceCollection, Action<CoreUploadOptions>?)
Registers the default CoreUpload services, including licensing, storage, progress tracking, uploads, and cleanup.
Declaration
public static IServiceCollection AddCoreUpload(this IServiceCollection services, Action<CoreUploadOptions>? configure = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The service collection being configured. |
| Action<CoreUploadOptions> | configure | Optional callback used to configure CoreUploadOptions. |
Returns
| Type | Description |
|---|---|
| IServiceCollection | The same service collection so calls can be chained. |