View Source
Class ServerMessengerBase
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public abstract class ServerMessengerBase : IServerMessenger
Constructors
View Source
ServerMessengerBase(Boolean)
Declaration
protected ServerMessengerBase(bool distributedEnabled)
Parameters
Type |
Name |
Description |
System.Boolean |
distributedEnabled |
|
Properties
View Source
DistributedEnabled
Declaration
protected bool DistributedEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
View Source
Deliver(ICacheRefresher, MessageType, IEnumerable<Object>, String)
Declaration
protected virtual void Deliver(ICacheRefresher refresher, MessageType messageType, IEnumerable<object> ids = null, string json = null)
Parameters
Type |
Name |
Description |
ICacheRefresher |
refresher |
|
MessageType |
messageType |
|
System.Collections.Generic.IEnumerable<System.Object> |
ids |
|
System.String |
json |
|
View Source
Deliver<TPayload>(ICacheRefresher, TPayload[])
Declaration
protected virtual void Deliver<TPayload>(ICacheRefresher refresher, TPayload[] payload)
Parameters
Type Parameters
Name |
Description |
TPayload |
|
View Source
Deliver<T>(ICacheRefresher, MessageType, Func<T, Object>, IEnumerable<T>)
Declaration
protected virtual void Deliver<T>(ICacheRefresher refresher, MessageType messageType, Func<T, object> getId, IEnumerable<T> instances)
Parameters
Type |
Name |
Description |
ICacheRefresher |
refresher |
|
MessageType |
messageType |
|
System.Func<T, System.Object> |
getId |
|
System.Collections.Generic.IEnumerable<T> |
instances |
|
Type Parameters
View Source
DeliverLocal(ICacheRefresher, MessageType, IEnumerable<Object>, String)
Executes the non strongly typed ICacheRefresher on the local/current server
Declaration
protected void DeliverLocal(ICacheRefresher refresher, MessageType messageType, IEnumerable<object> ids = null, string json = null)
Parameters
Type |
Name |
Description |
ICacheRefresher |
refresher |
|
MessageType |
messageType |
|
System.Collections.Generic.IEnumerable<System.Object> |
ids |
|
System.String |
json |
|
View Source
DeliverLocal<TPayload>(ICacheRefresher, TPayload[])
Declaration
protected void DeliverLocal<TPayload>(ICacheRefresher refresher, TPayload[] payload)
Parameters
Type Parameters
Name |
Description |
TPayload |
|
View Source
DeliverLocal<T>(ICacheRefresher, MessageType, Func<T, Object>, IEnumerable<T>)
Executes the strongly typed Umbraco.Core.Cache.ICacheRefresher`1 on the local/current server
Declaration
protected void DeliverLocal<T>(ICacheRefresher refresher, MessageType messageType, Func<T, object> getId, IEnumerable<T> instances)
Parameters
Type |
Name |
Description |
ICacheRefresher |
refresher |
|
MessageType |
messageType |
|
System.Func<T, System.Object> |
getId |
|
System.Collections.Generic.IEnumerable<T> |
instances |
|
Type Parameters
View Source
DeliverRemote(ICacheRefresher, MessageType, IEnumerable<Object>, String)
Declaration
protected abstract void DeliverRemote(ICacheRefresher refresher, MessageType messageType, IEnumerable<object> ids = null, string json = null)
Parameters
Type |
Name |
Description |
ICacheRefresher |
refresher |
|
MessageType |
messageType |
|
System.Collections.Generic.IEnumerable<System.Object> |
ids |
|
System.String |
json |
|
View Source
GetArrayType(IEnumerable<Object>, out Type)
Declaration
protected static bool GetArrayType(IEnumerable<object> ids, out Type arrayType)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Object> |
ids |
|
System.Type |
arrayType |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Declaration
public void PerformRefresh(ICacheRefresher refresher, params Guid[] guidIds)
Parameters
View Source
Declaration
public void PerformRefresh(ICacheRefresher refresher, params int[] numericIds)
Parameters
View Source
Declaration
public void PerformRefresh(ICacheRefresher refresher, string jsonPayload)
Parameters
View Source
Declaration
public void PerformRefresh<TPayload>(ICacheRefresher refresher, TPayload[] payload)
Parameters
Type Parameters
Name |
Description |
TPayload |
|
View Source
Declaration
public void PerformRefresh<T>(ICacheRefresher refresher, Func<T, Guid> getGuidId, params T[] instances)
Parameters
Type |
Name |
Description |
ICacheRefresher |
refresher |
|
System.Func<T, System.Guid> |
getGuidId |
|
T[] |
instances |
|
Type Parameters
View Source
Declaration
public void PerformRefresh<T>(ICacheRefresher refresher, Func<T, int> getNumericId, params T[] instances)
Parameters
Type |
Name |
Description |
ICacheRefresher |
refresher |
|
System.Func<T, System.Int32> |
getNumericId |
|
T[] |
instances |
|
Type Parameters
View Source
Declaration
public void PerformRefreshAll(ICacheRefresher refresher)
Parameters
View Source
Declaration
public void PerformRemove(ICacheRefresher refresher, params int[] numericIds)
Parameters
View Source
Declaration
public void PerformRemove<T>(ICacheRefresher refresher, Func<T, int> getNumericId, params T[] instances)
Parameters
Type |
Name |
Description |
ICacheRefresher |
refresher |
|
System.Func<T, System.Int32> |
getNumericId |
|
T[] |
instances |
|
Type Parameters
View Source
RequiresDistributed(ICacheRefresher, MessageType)
Determines whether to make distributed calls when messaging a cache refresher.
Declaration
protected virtual bool RequiresDistributed(ICacheRefresher refresher, MessageType messageType)
Parameters
Returns
Type |
Description |
System.Boolean |
true if distributed calls are required; otherwise, false, all we have is the local server.
|