Class UrlShortingPublicAppService
Inheritance
UrlShortingPublicAppService
Assembly: Volo.CmsKit.Pro.Public.Application.dll
Syntax
[RequiresFeature(new string[] { "CmsKitPro.UrlShortingEnable" })]
[RequiresGlobalFeature("CmsKitPro.UrlShorting")]
public class UrlShortingPublicAppService : ApplicationService, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, IUrlShortingPublicAppService, IApplicationService, IRemoteService
Constructors
UrlShortingPublicAppService(IShortenedUrlRepository, IDistributedCache<ShortenedUrlCacheItem, string>, IDistributedCache<List<string>>, IOptions<UrlShortingOptions>)
Declaration
public UrlShortingPublicAppService(IShortenedUrlRepository shortenedUrlRepository, IDistributedCache<ShortenedUrlCacheItem, string> shortenedUrlCache, IDistributedCache<List<string>> regexShortenedUrlCacheKeysCache, IOptions<UrlShortingOptions> options)
Parameters
Methods
AddCacheKeyAsync(string)
Declaration
protected virtual Task AddCacheKeyAsync(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
AddCacheKeyManyAsync(List<string>)
Declaration
protected virtual Task AddCacheKeyManyAsync(List<string> keys)
Parameters
Returns
AddCacheManyAsync(List<ShortenedUrl>)
Declaration
protected virtual Task AddCacheManyAsync(List<ShortenedUrl> shortenedUrls)
Parameters
Returns
AddRegexManyToCacheAsync(List<ShortenedUrl>)
Declaration
protected virtual Task AddRegexManyToCacheAsync(List<ShortenedUrl> shortenedUrls)
Parameters
Returns
AddRegexToCacheAsync(ShortenedUrlCacheItem)
Declaration
protected virtual Task AddRegexToCacheAsync(ShortenedUrlCacheItem shortenedUrl)
Parameters
Returns
AddToCacheAsync(string, ShortenedUrlCacheItem)
Declaration
protected virtual Task AddToCacheAsync(string source, ShortenedUrlCacheItem shortenedUrl)
Parameters
Returns
FindBySourceAsync(string)
Declaration
public virtual Task<ShortenedUrlDto> FindBySourceAsync(string source)
Parameters
Type |
Name |
Description |
string |
source |
|
Returns
FindFromAllRegexCacheAsync(string)
Declaration
protected virtual Task<ShortenedUrlCacheItem> FindFromAllRegexCacheAsync(string source)
Parameters
Type |
Name |
Description |
string |
source |
|
Returns
FindFromCacheAsync(string)
Declaration
protected virtual Task<ShortenedUrlCacheItem> FindFromCacheAsync(string source)
Parameters
Type |
Name |
Description |
string |
source |
|
Returns
FindFromDbAsync(string)
Declaration
protected virtual Task<ShortenedUrlDto> FindFromDbAsync(string source)
Parameters
Type |
Name |
Description |
string |
source |
|
Returns
InMemoryCacheRemoveExpired()
Declaration
protected virtual void InMemoryCacheRemoveExpired()
RegexIsMatch(string, string)
Declaration
protected virtual bool RegexIsMatch(string source, string target)
Parameters
Returns
RemoveCacheKeyAsync(string)
Declaration
protected virtual Task RemoveCacheKeyAsync(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
RemoveCacheKeyManyAsync(List<string>)
Declaration
protected virtual Task RemoveCacheKeyManyAsync(List<string> keys)
Parameters
Returns
RemoveRegexFromCache(string)
Declaration
protected virtual Task RemoveRegexFromCache(string source)
Parameters
Type |
Name |
Description |
string |
source |
|
Returns
RemoveRegexManyFromCacheAsync(List<ShortenedUrlCacheItem>)
Declaration
protected virtual Task RemoveRegexManyFromCacheAsync(List<ShortenedUrlCacheItem> shortenedUrls)
Parameters
Returns
Implements
Extension Methods