Example #1
0
 public LinkController(
     ILogger <LinkController> logger,
     ILinkForwarderService linkForwarderService,
     ILinkVerifier linkVerifier,
     IMemoryCache cache)
 {
     _logger = logger;
     _linkForwarderService = linkForwarderService;
     _linkVerifier         = linkVerifier;
     _cache = cache;
 }
Example #2
0
 public AdminController(
     IOptions <AppSettings> settings,
     ILogger <AdminController> logger,
     ILinkForwarderService linkForwarderService,
     ILinkVerifier linkVerifier,
     IMemoryCache cache)
 {
     _appSettings          = settings.Value;
     _logger               = logger;
     _linkForwarderService = linkForwarderService;
     _linkVerifier         = linkVerifier;
     _cache = cache;
     _authenticationSettings = AppDomain.CurrentDomain.GetData(nameof(AuthenticationSettings)) as AuthenticationSettings;
 }
Example #3
0
 public AdminController(
     ILogger <AdminController> logger,
     ILinkForwarderService linkForwarderService,
     ILinkVerifier linkVerifier,
     IMemoryCache cache,
     IFeatureManager featureManager)
 {
     _logger = logger;
     _linkForwarderService = linkForwarderService;
     _linkVerifier         = linkVerifier;
     _cache                  = cache;
     _featureManager         = featureManager;
     _authenticationSettings = AppDomain.CurrentDomain.GetData(nameof(AuthenticationSettings)) as AuthenticationSettings;
 }
 public ForwardController(
     IOptions<AppSettings> settings,
     ILogger<ForwardController> logger,
     ILinkForwarderService linkForwarderService,
     ITokenGenerator tokenGenerator,
     IMemoryCache cache,
     ILinkVerifier linkVerifier)
 {
     _appSettings = settings.Value;
     _logger = logger;
     _linkForwarderService = linkForwarderService;
     _tokenGenerator = tokenGenerator;
     _cache = cache;
     _linkVerifier = linkVerifier;
 }