1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-11-23 22:55:37 +01:00
GiantsTools/Giants.Services/Core/Entities/VersionInfo.cs

14 lines
430 B
C#
Raw Normal View History

using System;
namespace Giants.Services
{
2020-08-16 11:03:10 +02:00
public class VersionInfo : DataContract.V1.VersionInfo, IIdentifiable
{
2022-09-09 07:31:24 +02:00
public string id => GenerateId(this.AppName, this.BranchName ?? BranchConstants.DefaultBranchName);
public string DocumentType => nameof(VersionInfo);
2022-09-09 07:31:24 +02:00
public static string GenerateId(string appName, string branchName) => $"{nameof(VersionInfo)}-{appName}-{branchName}";
}
}