|
|
|
@ -6,6 +6,7 @@ |
|
|
|
// ==========================================================================
|
|
|
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Reflection; |
|
|
|
using System.Text; |
|
|
|
using Microsoft.Extensions.Configuration; |
|
|
|
using Squidex.Infrastructure; |
|
|
|
@ -18,7 +19,7 @@ namespace Squidex.Web |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
public ExposedValues(ExposedConfiguration configured, IConfiguration configuration) |
|
|
|
public ExposedValues(ExposedConfiguration configured, IConfiguration configuration, Assembly assembly = null) |
|
|
|
{ |
|
|
|
Guard.NotNull(configured, nameof(configured)); |
|
|
|
Guard.NotNull(configuration, nameof(configuration)); |
|
|
|
@ -32,6 +33,14 @@ namespace Squidex.Web |
|
|
|
this[kvp.Key] = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (assembly != null) |
|
|
|
{ |
|
|
|
if (!ContainsKey("version")) |
|
|
|
{ |
|
|
|
this["version"] = assembly.GetName().Version.ToString(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public override string ToString() |
|
|
|
|