VersionStrategyModule Class

Summary

Automatically discovers and registers all concrete IVersionStrategy implementations found in the current assembly.
Namespace
GitVersion.VersionCalculation
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IGitVersionModule"] click Interface0 "/api/GitVersion/IGitVersionModule" Type["VersionStrategyModule"] class Type type-node

Syntax

public class VersionStrategyModule : IGitVersionModule

Methods

Name Value Summary
RegisterTypes(IServiceCollection) void
Scans the assembly for IVersionStrategy implementations and registers each as a singleton.

Extension Methods

Name Value Summary
NotNull<VersionStrategyModule>(string) T
Throws ArgumentNullException when value is null; otherwise returns the value.
GitHub