Show / Hide Table of Contents

Class ExcelFileDownloadService

Inheritance
object
ExcelFileDownloadService
Implements
IExcelFileDownloadService
ITransientDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.AuditLogging.ExcelFileDownload
Assembly: Volo.Abp.AuditLogging.Application.dll
Syntax
public class ExcelFileDownloadService : IExcelFileDownloadService, ITransientDependency

Constructors

ExcelFileDownloadService(IOptions<AuditLogExcelFileOptions>, IBlobContainer<AuditLogExcelContainer>, IAuditLogExcelFileRepository, IClock, ILogger<ExcelFileDownloadService>, IGuidGenerator)

Declaration
public ExcelFileDownloadService(IOptions<AuditLogExcelFileOptions> options, IBlobContainer<AuditLogExcelContainer> blobContainer, IAuditLogExcelFileRepository excelFileRepository, IClock clock, ILogger<ExcelFileDownloadService> logger, IGuidGenerator guidGenerator)
Parameters
Type Name Description
IOptions<AuditLogExcelFileOptions> options
IBlobContainer<AuditLogExcelContainer> blobContainer
IAuditLogExcelFileRepository excelFileRepository
IClock clock
ILogger<ExcelFileDownloadService> logger
IGuidGenerator guidGenerator

Methods

CleanupOldFilesAsync()

Declaration
public Task CleanupOldFilesAsync()
Returns
Type Description
Task

CreateDownloadLinkAsync(string)

Declaration
public Task<string> CreateDownloadLinkAsync(string fileName)
Parameters
Type Name Description
string fileName
Returns
Type Description
Task<string>

GenerateUniqueFileName(string, string)

Declaration
public string GenerateUniqueFileName(string fileNameWithoutExtension, string extension)
Parameters
Type Name Description
string fileNameWithoutExtension
string extension
Returns
Type Description
string

GetFileContentAsync(string)

Declaration
public Task<Stream> GetFileContentAsync(string fileName)
Parameters
Type Name Description
string fileName
Returns
Type Description
Task<Stream>

SaveFileAsync(string, Stream, Guid?)

Declaration
public Task SaveFileAsync(string fileName, Stream fileContent, Guid? createdBy)
Parameters
Type Name Description
string fileName
Stream fileContent
Guid? createdBy
Returns
Type Description
Task

Implements

IExcelFileDownloadService
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform