SimpleVersion
Search Results for

    Show / Hide Table of Contents

    Class BaseVersionEnvironment

    Base implementation to read environment variables.

    Inheritance
    System.Object
    BaseVersionEnvironment
    AzureDevopsEnvironment
    DefaultVersionEnvironment
    Implements
    IVersionEnvironment
    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 Source

    BaseVersionEnvironment(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 Source

    CanonicalBranchTrimmer

    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 Source

    BranchName

    Gets the branch name from the environment.

    Declaration
    public string BranchName { get; protected set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    CanonicalBranchName

    Gets the canonical branch name from the environment.

    Declaration
    public string CanonicalBranchName { get; protected set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Variables

    Gets the IEnvironmentVariableAccessor to access environment variables.

    Declaration
    protected IEnvironmentVariableAccessor Variables { get; }
    Property Value
    Type Description
    IEnvironmentVariableAccessor

    Implements

    IVersionEnvironment

    Extension Methods

    TokenRuleExtensions.ResolveTokenRules<T>(T, IVersionContext, IEnumerable<ITokenRule<T>>)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX