mirror of https://github.com/abpframework/eventhub
2 changed files with 0 additions and 24 deletions
@ -1,20 +0,0 @@ |
|||
using System.Threading.Tasks; |
|||
using EventHub; |
|||
using Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations; |
|||
using Volo.Abp.Data; |
|||
|
|||
public class VersionApplicationConfigurationContributor : IApplicationConfigurationContributor |
|||
{ |
|||
public Task ContributeAsync(ApplicationConfigurationContributorContext context) |
|||
{ |
|||
var assemblyInfo = AssemblyInfoHelper.Get(); |
|||
context.ApplicationConfiguration.SetProperty("versions", new |
|||
{ |
|||
abp = assemblyInfo.AbpCoreVersion, |
|||
application = assemblyInfo.Version, |
|||
applicationCompileDate = assemblyInfo.ModificationDate |
|||
}); |
|||
|
|||
return Task.CompletedTask; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue