Table of Contents

Class EnvironmentModel

Namespace
Shift.Common
Assembly
Shift.Common.dll
public class EnvironmentModel
Inheritance
EnvironmentModel
Inherited Members
Extension Methods

Constructors

EnvironmentModel(EnvironmentName)

public EnvironmentModel(EnvironmentName name)

Parameters

name EnvironmentName

EnvironmentModel(string)

public EnvironmentModel(string name)

Parameters

name string

Properties

Color

Returns the name of the Bootstrap contextual color for the environment.

public string Color { get; }

Property Value

string

Remarks

Production = success Sandbox = warning Development = danger Local = info

Icon

public string Icon { get; }

Property Value

string

Name

public EnvironmentName Name { get; set; }

Property Value

EnvironmentName

Slug

public string Slug { get; set; }

Property Value

string

Methods

GetSubdomainPrefix()

public string GetSubdomainPrefix()

Returns

string

IsLocal()

public bool IsLocal()

Returns

bool

IsPreProduction()

public bool IsPreProduction()

Returns

bool

Remarks

Pre-Production Environments refer to all environments used for developing, integrating, testing, and validating software before its deployment to the Live (Production) environment.

IsProduction()

public bool IsProduction()

Returns

bool

ToString()

public override string ToString()

Returns

string