Class BranchNameTokenRule
Applies rules for the friendly branch name token.
Implements
ITokenRule<System.String>
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.Rules
Assembly: SimpleVersion.Core.dll
Syntax
public class BranchNameTokenRule : BaseBranchNameTokenRule, ITokenRule<string>
Constructors
| Improve this Doc View SourceBranchNameTokenRule()
Initializes a new instance of the BranchNameTokenRule class.
Declaration
public BranchNameTokenRule()
BranchNameTokenRule(String)
Initializes a new instance of the BranchNameTokenRule class.
Declaration
public BranchNameTokenRule(string pattern)
Parameters
Type | Name | Description |
---|---|---|
System.String | pattern | The regular expression pattern to use when replacing characters. |
Properties
| Improve this Doc View SourceInstance
Gets a default instance of the rule.
Declaration
public static BranchNameTokenRule Instance { get; }
Property Value
Type | Description |
---|---|
BranchNameTokenRule |
Token
Gets the token string.
Declaration
public override string Token { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
| Improve this Doc View SourceResolveBranchName(IVersionContext)
Resolves the branch name value for this rule.
Declaration
protected override string ResolveBranchName(IVersionContext context)
Parameters
Type | Name | Description |
---|---|---|
IVersionContext | context | The VersionContext of the current calculation. |
Returns
Type | Description |
---|---|
System.String | The branch name value. |