Exemple #1
0
 public UploadService(
     IServiceProvider services,
     SHA512Managed sha512Managed,
     ILogger <UploadService> logger,
     EntityConfigurationProvider <UploadConfiguration> uploadConfigurationProvider)
 {
     _services            = services;
     _sha512Managed       = sha512Managed;
     _logger              = logger;
     _uploadConfiguration = uploadConfigurationProvider.GetConfiguration();
 }
Exemple #2
0
 public ShortenService(
     IServiceProvider services,
     SHA512Managed sha512Managed,
     EntityConfigurationProvider <ShortenConfiguration> shortenConfigurationProvider,
     ILogger <ShortenService> logger)
 {
     _services             = services;
     _sha512Managed        = sha512Managed;
     _logger               = logger;
     _rng                  = new Random(Guid.NewGuid().GetHashCode());
     _shortenConfiguration = shortenConfigurationProvider.GetConfiguration();
 }