UploadServiceCollectionExtensions.AddUploadStorage method (1 of 2)
namespace: Serenity.Extensions.DependencyInjection assembly: Serenity.Net.Web
Registers the default implementations of IUploadStorage, IUploadValidator, IImageProcessor and IUploadProcessor interfaces.
public static IServiceCollection AddUploadStorage(this IServiceCollection collection)
| parameter | description |
|---|---|
| collection | The service collection. |
Return Value
The same service collection so that calls can be chained.
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | collection is null. |
See Also
UploadServiceCollectionExtensions.AddUploadStorage method (2 of 2)
namespace: Serenity.Extensions.DependencyInjection assembly: Serenity.Net.Web
Registers the default implementations of IUploadStorage, IUploadValidator, IImageProcessor and IUploadProcessor interfaces.
public static IServiceCollection AddUploadStorage(this IServiceCollection collection,
Action<UploadSettings> setupAction)
| parameter | description |
|---|---|
| collection | The service collection. |
| setupAction | The callback to edit options. |
Return Value
The same service collection so that calls can be chained.
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | collection or setupAction is null. |
See Also
- class UploadSettings
- class UploadServiceCollectionExtensions