Show / Hide Table of Contents

Class DownloadToken

The DownloadToken entity is intended to help facilitate secure file downloads. In order to easily provide a user with a secure DownloadToken, you can use the static method FileDownloads.CreateDownloadToken to allow your API Controllers to create a token by a secured user and return that token for use with the DownloadFile API controller.

Inheritance
System.Object
DownloadToken
Namespace: LymeTemplateApi.Models
Assembly: LymeTemplateApi.Models.dll
Syntax
public class DownloadToken : object

Properties

DateEntered

The date the token was created.

Declaration
public DateTime DateEntered { get; set; }
Property Value
Type Description
DateTime

ExpirationDate

The date that the token expires.

Declaration
public DateTime ExpirationDate { get; set; }
Property Value
Type Description
DateTime

FileName

The optional overriding filename that should be delivered to the user.

Declaration
public string? FileName { get; set; }
Property Value
Type Description
System.Nullable<System.String>

FilePath

The physical file path of the file to be downloaded.

Declaration
public string? FilePath { get; set; }
Property Value
Type Description
System.Nullable<System.String>

Id

Primary key

Declaration
public int Id { get; set; }
Property Value
Type Description
System.Int32

Redeemed

The date that the token was redeemed.

Declaration
public DateTime? Redeemed { get; set; }
Property Value
Type Description
System.Nullable<DateTime>

Token

The GUID Token created for the file download.

Declaration
public Guid Token { get; set; }
Property Value
Type Description
Guid
In This Article
Back to top Generated by DocFX