Class BaseVersionEnvironment
Base implementation to read environment variables.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SimpleVersion.Environment
Assembly: SimpleVersion.Abstractions.dll
Syntax
public abstract class BaseVersionEnvironment : IVersionEnvironment
Constructors
| Improve this Doc View SourceBaseVersionEnvironment(IEnvironmentVariableAccessor)
Initializes a new instance of the BaseVersionEnvironment class.
Declaration
protected BaseVersionEnvironment(IEnvironmentVariableAccessor accessor)
Parameters
Type | Name | Description |
---|---|---|
IEnvironmentVariableAccessor | accessor | The accessor for environment variables. |
Fields
| Improve this Doc View SourceCanonicalBranchTrimmer
Use to normalize branch names from a canonical name.
Declaration
protected static readonly Regex CanonicalBranchTrimmer
Field Value
Type | Description |
---|---|
System.Text.RegularExpressions.Regex |
Properties
| Improve this Doc View SourceBranchName
Gets the branch name from the environment.
Declaration
public string BranchName { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
CanonicalBranchName
Gets the canonical branch name from the environment.
Declaration
public string CanonicalBranchName { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
IsValid
Gets a value indicating whether the environment is valid for the current request.
Declaration
public abstract bool IsValid { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Variables
Gets the IEnvironmentVariableAccessor to access environment variables.
Declaration
protected IEnvironmentVariableAccessor Variables { get; }
Property Value
Type | Description |
---|---|
IEnvironmentVariableAccessor |