Exemple #1
0
        public static async Task <string> GetValidEndUrl(string vanity, IStorageTableHelper stgHelper)
        {
            if (!string.IsNullOrEmpty(vanity))
            {
                return(string.Join(string.Empty, vanity));
            }

            var newKey = await stgHelper.GetNextTableId();

            string GetCode() => Encode(newKey);

            return(string.Join(string.Empty, GetCode()));
        }
Exemple #2
0
 public UrlUpdate(IStorageTableHelper storageTableHelper)
 {
     _storageTableHelper = storageTableHelper;
 }
Exemple #3
0
 public UrlList(IStorageTableHelper storageTableHelper)
 {
     _storageTableHelper = storageTableHelper;
 }
 public UrlClickStats(IStorageTableHelper storageTableHelper)
 {
     _storageTableHelper = storageTableHelper;
 }
Exemple #5
0
 public UrlArchive(IStorageTableHelper storageTableHelper)
 {
     _storageTableHelper = storageTableHelper;
 }
Exemple #6
0
 public UrlShortener(IStorageTableHelper storageTableHelper)
 {
     _storageTableHelper = storageTableHelper;
 }
Exemple #7
0
 public UrlRedirect(IUserIpLocationService userIpLocationService, IConfiguration configuration, IStorageTableHelper storageTableHelper)
 {
     _userIpLocationService = userIpLocationService;
     _configuration         = configuration;
     _storageTableHelper    = storageTableHelper;
 }