Class FileAppService
Inheritance
System.Object
FileAppService
Implements
IApplicationService
Assembly: Volo.Blogging.Application.dll
Syntax
public class FileAppService : BloggingAppServiceBase, IFileAppService, IApplicationService
Constructors
FileAppService(IOptions<BlogFileOptions>, ILogger<FileAppService>)
Declaration
public FileAppService(IOptions<BlogFileOptions> options, ILogger<FileAppService> logger)
Parameters
Properties
Options
Declaration
public BlogFileOptions Options { get; }
Property Value
Methods
CreateAsync(FileUploadInputDto)
Declaration
public virtual Task<FileUploadOutputDto> CreateAsync(FileUploadInputDto input)
Parameters
Returns
GenerateUniqueFileName(String, String, String)
Declaration
protected virtual string GenerateUniqueFileName(string extension, string prefix = null, string postfix = null)
Parameters
Type |
Name |
Description |
System.String |
extension |
|
System.String |
prefix |
|
System.String |
postfix |
|
Returns
Type |
Description |
System.String |
|
GetAsync(String)
Declaration
public virtual Task<RawFileDto> GetAsync(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Implements
IApplicationService
Extension Methods