-
-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed buypass certificate issuing error (#679)
- Loading branch information
Showing
5 changed files
with
58 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
using System.Reflection; | ||
|
||
using Microsoft.ApplicationInsights.Channel; | ||
using Microsoft.ApplicationInsights.Channel; | ||
using Microsoft.ApplicationInsights.Extensibility; | ||
|
||
namespace KeyVault.Acmebot.Internal; | ||
|
||
internal class ApplicationVersionInitializer<TStartup> : ITelemetryInitializer | ||
internal class ApplicationVersionInitializer : ITelemetryInitializer | ||
{ | ||
public string ApplicationVersion { get; } = typeof(TStartup).Assembly | ||
.GetCustomAttribute<AssemblyInformationalVersionAttribute>() | ||
?.InformationalVersion; | ||
|
||
public void Initialize(ITelemetry telemetry) => telemetry.Context.Component.Version = ApplicationVersion; | ||
public void Initialize(ITelemetry telemetry) => telemetry.Context.Component.Version = Constants.ApplicationVersion; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Reflection; | ||
|
||
namespace KeyVault.Acmebot.Internal; | ||
|
||
internal static class Constants | ||
{ | ||
public static string ApplicationVersion { get; } = typeof(Startup).Assembly | ||
.GetCustomAttribute<AssemblyInformationalVersionAttribute>() | ||
?.InformationalVersion; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters