Class BlogFeatureChangedHandler
Inheritance
BlogFeatureChangedHandler
Assembly: Volo.CmsKit.Common.Application.dll
Syntax
public class BlogFeatureChangedHandler : ILocalEventHandler<EntityCreatedEventData<BlogFeature>>, ILocalEventHandler<EntityUpdatedEventData<BlogFeature>>, IEventHandler, ITransientDependency
Constructors
BlogFeatureChangedHandler(IDistributedCache<BlogFeatureCacheItem, BlogFeatureCacheKey>)
Declaration
public BlogFeatureChangedHandler(IDistributedCache<BlogFeatureCacheItem, BlogFeatureCacheKey> cache)
Parameters
Properties
Cache
Declaration
protected IDistributedCache<BlogFeatureCacheItem, BlogFeatureCacheKey> Cache { get; }
Property Value
Methods
HandleEventAsync(EntityCreatedEventData<BlogFeature>)
Declaration
public Task HandleEventAsync(EntityCreatedEventData<BlogFeature> eventData)
Parameters
Returns
HandleEventAsync(EntityUpdatedEventData<BlogFeature>)
Declaration
public Task HandleEventAsync(EntityUpdatedEventData<BlogFeature> eventData)
Parameters
Returns
RemoveFromCacheAsync(Guid, string)
Declaration
public Task RemoveFromCacheAsync(Guid blogId, string featureName)
Parameters
Type |
Name |
Description |
Guid |
blogId |
|
string |
featureName |
|
Returns
Implements
Extension Methods