Show / Hide Table of Contents

Class UrlShortingPublicAppService

Inheritance
object
ApplicationService
UrlShortingPublicAppService
Implements
IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
IUrlShortingPublicAppService
IApplicationService
IRemoteService
Inherited Members
ApplicationService.CheckPolicyAsync(string)
ApplicationService.CreateLocalizer()
ApplicationService.LazyServiceProvider
ApplicationService.ServiceProvider
ApplicationService.CommonPostfixes
ApplicationService.AppliedCrossCuttingConcerns
ApplicationService.UnitOfWorkManager
ApplicationService.AsyncExecuter
ApplicationService.ObjectMapperContext
ApplicationService.ObjectMapper
ApplicationService.GuidGenerator
ApplicationService.LoggerFactory
ApplicationService.CurrentTenant
ApplicationService.DataFilter
ApplicationService.CurrentUser
ApplicationService.SettingProvider
ApplicationService.Clock
ApplicationService.AuthorizationService
ApplicationService.FeatureChecker
ApplicationService.StringLocalizerFactory
ApplicationService.L
ApplicationService.LocalizationResource
ApplicationService.CurrentUnitOfWork
ApplicationService.Logger
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.CmsKit.Public.UrlShorting
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
Type Name Description
IShortenedUrlRepository shortenedUrlRepository
IOptions<UrlShortingOptions> options
ShortenedUrlCacheService shortenedUrlCacheService

Methods

FindBySourceAsync(string)

Declaration
public virtual Task<ShortenedUrlDto> FindBySourceAsync(string source)
Parameters
Type Name Description
string source
Returns
Type Description
Task<ShortenedUrlDto>

FindFromCacheAsync(string)

Declaration
protected virtual Task<ShortenedUrlCacheItem> FindFromCacheAsync(string source)
Parameters
Type Name Description
string source
Returns
Type Description
Task<ShortenedUrlCacheItem>

FindFromDbAsync(string)

Declaration
protected virtual Task<ShortenedUrlDto> FindFromDbAsync(string source)
Parameters
Type Name Description
string source
Returns
Type Description
Task<ShortenedUrlDto>

RegexIsMatch(string, string)

Declaration
protected virtual bool RegexIsMatch(string source, string target)
Parameters
Type Name Description
string source
string target
Returns
Type Description
bool

Implements

IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
IUrlShortingPublicAppService
IApplicationService
IRemoteService

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform