mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
20 lines
640 B
C#
20 lines
640 B
C#
namespace Bloxstrap.Models.Attributes
|
|
{
|
|
[AttributeUsage(AttributeTargets.Assembly)]
|
|
public class BuildMetadataAttribute : Attribute
|
|
{
|
|
public DateTime Timestamp { get; set; }
|
|
public string Machine { get; set; }
|
|
public string CommitHash { get; set; }
|
|
public string CommitRef { get; set; }
|
|
|
|
public BuildMetadataAttribute(string timestamp, string machine, string commitHash, string commitRef)
|
|
{
|
|
Timestamp = DateTime.Parse(timestamp).ToLocalTime();
|
|
Machine = machine;
|
|
CommitHash = commitHash;
|
|
CommitRef = commitRef;
|
|
}
|
|
}
|
|
}
|