UploadServiceCollectionExtensions.AddUploadStorage method (1 of 2)

namespace: Serenity.Web   assemblySerenity.Net.Web

Registers the default implementations of IUploadStorage, IUploadValidator, IImageProcessor and IUploadProcessor interfaces.

public static void AddUploadStorage(this IServiceCollection collection)
parameter description
collection Service collection

Exceptions

exception condition
ArgumentNullException Collection is null

See Also


UploadServiceCollectionExtensions.AddUploadStorage method (2 of 2)

namespace: Serenity.Web   assemblySerenity.Net.Web

Registers the default implementations of IUploadStorage, IUploadValidator, IImageProcessor and IUploadProcessor interfaces.

public static void AddUploadStorage(this IServiceCollection collection, 
    Action<UploadSettings> setupAction)
parameter description
collection Service collection
setupAction Callback to edit options

Exceptions

exception condition
ArgumentNullException Collection is null

See Also