Table of Contents

Class ClientInfo

Namespace
OpenSettings.Models
Assembly
OpenSettings.dll

Represents information about a client, including its name, id, secret key, and version.

public class ClientInfo
Inheritance
ClientInfo
Inherited Members

Constructors

ClientInfo(Guid?, Guid?, string, string)

Initializes a new instance of the ClientInfo class with specified values or defaults.

[JsonConstructor]
public ClientInfo(Guid? id = null, Guid? secret = null, string name = null, string version = null)

Parameters

id Guid?

The unique identifier for the client. A new Guid will be generated if not provided. Value cannot be empty guid.

secret Guid?

The secret key for the client. A new Guid will be generated if not provided. Value cannot be empty guid.

name string

The name of the client.

version string

The version of the client application. Defaults to the version of the entry assembly if not provided.

Properties

Id

Gets or sets the id for the client.

public Guid Id { get; }

Property Value

Guid

Name

Gets or sets the name of the client.

public string Name { get; }

Property Value

string

Secret

Gets or sets the secret key for the client.

public Guid Secret { get; }

Property Value

Guid

Version

Gets the version information without the 'v' prefix. e.g. '1.0.0'.

[JsonIgnore]
public string Version { get; }

Property Value

string