Table of Contents

Class Message<TModel>

Namespace
Duende.IdentityServer.Models
Assembly
Duende.IdentityServer.dll

Base class for data that needs to be written out as cookies.

public class Message<TModel>

Type Parameters

TModel
Inheritance
Message<TModel>
Inherited Members

Constructors

Message()

For JSON serializer. System.Text.Json.JsonSerializer requires public, parameterless constructor

public Message()

Message(TModel, DateTime)

Initializes a new instance of the Message<TModel> class.

public Message(TModel data, DateTime now)

Parameters

data TModel

The data.

now DateTime

The current UTC date/time.

Properties

Created

Gets or sets the UTC ticks the Message<TModel> was created.

public long Created { get; set; }

Property Value

long

The created UTC ticks.

Data

Gets or sets the data.

public TModel Data { get; set; }

Property Value

TModel

The data.