Class BlogFeatureAppService
Inheritance
BlogFeatureAppService
Assembly: Volo.CmsKit.Common.Application.dll
Syntax
[RequiresGlobalFeature(typeof(BlogsFeature))]
public class BlogFeatureAppService : CmsKitAppServiceBase, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, IBlogFeatureAppService, IApplicationService, IRemoteService
Constructors
BlogFeatureAppService(IBlogFeatureRepository, IDistributedCache<BlogFeatureCacheItem, BlogFeatureCacheKey>)
Declaration
public BlogFeatureAppService(IBlogFeatureRepository blogFeatureRepository, IDistributedCache<BlogFeatureCacheItem, BlogFeatureCacheKey> blogFeatureCacheManager)
Parameters
Properties
BlogFeatureRepository
Declaration
protected virtual IBlogFeatureRepository BlogFeatureRepository { get; }
Property Value
Cache
Declaration
protected virtual IDistributedCache<BlogFeatureCacheItem, BlogFeatureCacheKey> Cache { get; }
Property Value
Methods
GetOrDefaultAsync(Guid, string)
Declaration
public virtual Task<BlogFeatureDto> GetOrDefaultAsync(Guid blogId, string featureName)
Parameters
Type |
Name |
Description |
Guid |
blogId |
|
string |
featureName |
|
Returns
GetOrDefaultFromRepositoryAsync(Guid, string)
Declaration
protected virtual Task<BlogFeatureCacheItem> GetOrDefaultFromRepositoryAsync(Guid blogId, string featureName)
Parameters
Type |
Name |
Description |
Guid |
blogId |
|
string |
featureName |
|
Returns
Implements
Extension Methods