Class DistributedCacheBinder
Default IDistributedCacheBinder implementation.
Inheritance
System.Object
Namespace: Umbraco.Web.Cache
Assembly: Umbraco.Web.dll
Syntax
public class DistributedCacheBinder : IDistributedCacheBinder
Constructors
View SourceDistributedCacheBinder(DistributedCache, IUmbracoContextFactory, ILogger)
Initializes a new instance of the DistributedCacheBinder class.
Declaration
[Obsolete("Please use the constructor accepting an instance of IServerMessenger. This constructor will be removed in a future version.")]
public DistributedCacheBinder(DistributedCache distributedCache, IUmbracoContextFactory umbracoContextFactory, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
DistributedCache | distributedCache | |
IUmbracoContextFactory | umbracoContextFactory | |
ILogger | logger |
DistributedCacheBinder(DistributedCache, IUmbracoContextFactory, ILogger, IServerMessenger)
Initializes a new instance of the DistributedCacheBinder class.
Declaration
public DistributedCacheBinder(DistributedCache distributedCache, IUmbracoContextFactory umbracoContextFactory, ILogger logger, IServerMessenger serverMessenger)
Parameters
Type | Name | Description |
---|---|---|
DistributedCache | distributedCache | |
IUmbracoContextFactory | umbracoContextFactory | |
ILogger | logger | |
IServerMessenger | serverMessenger |
Methods
View SourceBindEvents(Boolean)
Binds actual events to the distributed cache.
Declaration
public void BindEvents(bool supportUnbinding = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | supportUnbinding |
HandleEvents(IEnumerable<IEventDefinition>)
Handles events from definitions.
Declaration
public void HandleEvents(IEnumerable<IEventDefinition> events)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IEventDefinition> | events |
UnbindEvents()
Unbinds bounded events.
Declaration
public void UnbindEvents()