public static CloudTable GetCloudTable(IStorageTableService storageTableService, IConfiguration config, string tableName) { var connectionStr = config.GetValue <string>(StorageConnectionName); return(storageTableService.GetTable(connectionStr, tableName).Result); }
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)); }
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)); }