Class OutputCacheContentChangedContext
Describes a content change that triggered output cache eviction.
Inheritance
object
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public class OutputCacheContentChangedContext
Constructors
View SourceOutputCacheContentChangedContext(int, Guid, IReadOnlyCollection<string>, IReadOnlyCollection<string>)
Initializes a new instance of the OutputCacheContentChangedContext class.
Declaration
public OutputCacheContentChangedContext(int contentId, Guid contentKey, IReadOnlyCollection<string> publishedCultures, IReadOnlyCollection<string> unpublishedCultures)
Parameters
| Type | Name | Description |
|---|---|---|
| int | contentId | The integer ID of the content that changed. |
| Guid | contentKey | The key of the content that changed. |
| IReadOnlyCollection<string> | publishedCultures | The cultures that were published, if applicable. |
| IReadOnlyCollection<string> | unpublishedCultures | The cultures that were unpublished, if applicable. |
Properties
View SourceContentId
Gets the integer ID of the content that changed.
Declaration
public int ContentId { get; }
Property Value
| Type | Description |
|---|---|
| int |
ContentKey
Gets the key of the content that changed.
Declaration
public Guid ContentKey { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
PublishedCultures
Gets the cultures that were published, if applicable. Empty for invariant content.
Declaration
public IReadOnlyCollection<string> PublishedCultures { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyCollection<string> |
UnpublishedCultures
Gets the cultures that were unpublished, if applicable. Empty for invariant content.
Declaration
public IReadOnlyCollection<string> UnpublishedCultures { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyCollection<string> |