Table of Contents

Class Constants

Namespace
GastroSky
Assembly
GastroSky.Constants.dll

Constant values to be used throughout the project.

public static class Constants
Inheritance
Constants
Inherited Members

Fields

ADMIN_CLAIM_ID

The full claim ID string for the admin claim (when set to 1 or true it means the claim principal is a GastroSky root admin, with very plenty permissions, damn! Careful with this!).

public const string ADMIN_CLAIM_ID = "https://api.gastrosky.ch/identity/claims/admin"

Field Value

string

API_BASE_URL

Base URL for this Web API.

public const string API_BASE_URL = "https://api.gastrosky.ch"

Field Value

string

CORS_POLICY

The CORS-policy name (used by ASP.NET Core middleware; see usage inside Startup for more context).

public const string CORS_POLICY = "cors"

Field Value

string

GASTROSKY_DOMAINS

All domains that are in possession of Gastrosky Sagl and currently in use.

public static readonly IReadOnlyCollection<string> GASTROSKY_DOMAINS

Field Value

IReadOnlyCollection<string>

PEPPER

One pepper type for every month-of-the-year. Spice it up real good!

public static readonly IDictionary<string, string> PEPPER

Field Value

IDictionary<string, string>

SINGLE_INSTANCE_ENFORCER_MUTEX_NAME

Name to give to the Mutex in case the process must be forced unique.

public const string SINGLE_INSTANCE_ENFORCER_MUTEX_NAME = "GastroSky"

Field Value

string

SMTP_TIMEOUT_MILLISECONDS

The default amount of milliseconds before an SMTP operation times out.

public const int SMTP_TIMEOUT_MILLISECONDS = 65536

Field Value

int