Search Results for

Show / Hide Table of Contents

# Class ServiceCollectionExtensions

Registration helpers for adding CoreUpload services to the ASP.NET Core dependency injection container.

##### 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: 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.