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, IOptions<UrlShortingOptions>, ShortenedUrlCacheService)
Declaration
public UrlShortingPublicAppService(IShortenedUrlRepository shortenedUrlRepository, IOptions<UrlShortingOptions> options, ShortenedUrlCacheService shortenedUrlCacheService)
Parameters
Methods
FindBySourceAsync(string)
Declaration
public virtual Task<ShortenedUrlDto> FindBySourceAsync(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
RegexIsMatch(string, string)
Declaration
protected virtual bool RegexIsMatch(string source, string target)
Parameters
Returns
Implements
Extension Methods