feat(GTXMessagingService): initialisiert mit Konfigurationsoption
This commit is contained in:
parent
bb8bd8ed40
commit
30f93f2439
@ -0,0 +1,7 @@
|
||||
namespace EnvelopeGenerator.Application.Configurations
|
||||
{
|
||||
public class GTXMessagingConfig
|
||||
{
|
||||
public required string AuthKey { get; init; }
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
using EnvelopeGenerator.Application.Configurations;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
namespace EnvelopeGenerator.Application.Services
|
||||
{
|
||||
public class GTXMessagingService
|
||||
{
|
||||
private readonly string _authKey;
|
||||
|
||||
public GTXMessagingService(IOptions<GTXMessagingConfig> options)
|
||||
{
|
||||
_authKey = options.Value.AuthKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -125,5 +125,8 @@
|
||||
"[SIGNATURE_TYPE]": "signieren",
|
||||
"[REASON]": ""
|
||||
}
|
||||
},
|
||||
"GTXMessagingConfig": {
|
||||
"AuthKey": "ep$?A!Gs"
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user