Example #1
0
        public static CloudTable GetCloudTable(IStorageTableService storageTableService, IConfiguration config,
                                               string tableName)
        {
            var connectionStr = config.GetValue <string>(StorageConnectionName);

            return(storageTableService.GetTable(connectionStr, tableName).Result);
        }
Example #2
0
 public SubscriptionManager(ITokenService tokenService, IEmailService emailService,
                            IStorageTableService storageTableService)
 {
     _tokenService        = tokenService ?? throw new ArgumentNullException(nameof(tokenService));
     _emailService        = emailService ?? throw new ArgumentNullException(nameof(emailService));
     _storageTableService = storageTableService ?? throw new ArgumentNullException(nameof(storageTableService));
 }
Example #3
0
 public PublicationNotifier(ITokenService tokenService, IEmailService emailService,
                            IStorageTableService storageTableService)
 {
     _tokenService        = tokenService ?? throw new ArgumentNullException(nameof(tokenService));
     _emailService        = emailService ?? throw new ArgumentNullException(nameof(emailService));
     _storageTableService = storageTableService ?? throw new ArgumentNullException(nameof(storageTableService));
 }