Table of Contents

Class JJFileDownloader

Namespace
JJMasterData.Core.UI.Components
Assembly
JJMasterData.Core.dll
public class JJFileDownloader : HtmlComponent
Inheritance
JJFileDownloader
Inherited Members

Constructors

JJFileDownloader(IHttpContext, IEncryptionService, IStringLocalizer<MasterDataResources>, ILogger<JJFileDownloader>)

public JJFileDownloader(IHttpContext currentContext, IEncryptionService encryptionService, IStringLocalizer<MasterDataResources> stringLocalizer, ILogger<JJFileDownloader> logger)

Parameters

currentContext IHttpContext
encryptionService IEncryptionService
stringLocalizer IStringLocalizer<MasterDataResources>
logger ILogger<JJFileDownloader>

Fields

DirectDownloadParameter

public const string DirectDownloadParameter = "directDownloadFilePath"

Field Value

string

DownloadParameter

public const string DownloadParameter = "downloadFilePath"

Field Value

string

Properties

FilePath

public string FilePath { get; set; }

Property Value

string
public bool IsExternalLink { get; set; }

Property Value

bool

Methods

GetDownloadResult()

public FileComponentResult GetDownloadResult()

Returns

FileComponentResult

GetDownloadUrl()

public string GetDownloadUrl()

Returns

string
public static string GetExternalDownloadLink(IEncryptionService encryptionService, string absoluteUri, string filePath)

Parameters

encryptionService IEncryptionService
absoluteUri string
filePath string

Returns

string