mirror of
https://github.com/NecroticBamboo/QRBee.git
synced 2025-12-21 12:11:53 +00:00
18 lines
619 B
C#
18 lines
619 B
C#
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.Logging;
|
|
using QRBee.Api.Services;
|
|
using QRBee.Core.Security;
|
|
|
|
namespace QRBee.Load.Generator;
|
|
|
|
public delegate IPrivateKeyHandler PrivateKeyHandlerFactory(int keyNo);
|
|
public delegate ISecurityService SecurityServiceFactory(int keyNo);
|
|
|
|
internal class PrivateKeyHandler : ServerPrivateKeyHandler
|
|
{
|
|
public PrivateKeyHandler(ILogger<ServerPrivateKeyHandler> logger, IConfiguration config, int keyNo) : base(logger, config)
|
|
{
|
|
PrivateKeyFileName = Environment.ExpandEnvironmentVariables($"%TEMP%/!QRBee/QRBee-{keyNo:8X}.key");
|
|
}
|
|
}
|