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())); }
public UrlUpdate(IStorageTableHelper storageTableHelper) { _storageTableHelper = storageTableHelper; }
public UrlList(IStorageTableHelper storageTableHelper) { _storageTableHelper = storageTableHelper; }
public UrlClickStats(IStorageTableHelper storageTableHelper) { _storageTableHelper = storageTableHelper; }
public UrlArchive(IStorageTableHelper storageTableHelper) { _storageTableHelper = storageTableHelper; }
public UrlShortener(IStorageTableHelper storageTableHelper) { _storageTableHelper = storageTableHelper; }
public UrlRedirect(IUserIpLocationService userIpLocationService, IConfiguration configuration, IStorageTableHelper storageTableHelper) { _userIpLocationService = userIpLocationService; _configuration = configuration; _storageTableHelper = storageTableHelper; }