Table of Contents

Class VersionInformation

Namespace
Cratis.Chronicle
Assembly
Cratis.Chronicle.dll

Provides version information from the entry assembly (the consuming application). This allows Chronicle to track which version of the consumer application is running.

public static class VersionInformation
Inheritance
VersionInformation
Inherited Members

Methods

GetChronicleClientCommitSha()

Gets the commit SHA of the Chronicle .NET client library itself.

public static string GetChronicleClientCommitSha()

Returns

string

The Chronicle client commit SHA if available, otherwise "[N/A]".

GetChronicleClientVersion()

Gets the version of the Chronicle .NET client library itself.

public static string GetChronicleClientVersion()

Returns

string

The Chronicle client version string.

GetCommitSha()

Gets the commit SHA from the entry assembly's AssemblyInformationalVersion metadata. The entry assembly is the application using Chronicle, not Chronicle itself. Extracts the metadata portion after the '+' separator in the InformationalVersion attribute.

public static string GetCommitSha()

Returns

string

The commit SHA if available, otherwise "[N/A]".

GetVersion()

Gets the version from the entry assembly's AssemblyInformationalVersion or AssemblyVersion. The entry assembly is the application using Chronicle, not Chronicle itself. If the assembly has an AssemblyInformationalVersionAttribute, the version portion (before the '+' metadata separator) is returned. Otherwise, returns the AssemblyVersionAttribute value.

public static string GetVersion()

Returns

string

The version string from the entry assembly.