Class BackplaneMessage
Implements a simple message which can be send as a string to the server.
Inherited Members
Namespace:CacheManager.Core.Internal
Assembly:CacheManager.Core.dll
Syntax
public sealed class BackplaneMessage
Properties
| Improve this Doc View SourceAction
Gets or sets the action.
Declaration
public BackplaneAction Action { get; set; }
Property Value
| Type | Description |
|---|---|
| BackplaneAction | The action. |
ChangeAction
Gets or sets the cache action.
Declaration
public CacheItemChangedEventAction ChangeAction { get; set; }
Property Value
| Type | Description |
|---|---|
| CacheItemChangedEventAction |
Key
Gets or sets the key.
Declaration
public string Key { get; set; }
Property Value
| Type | Description |
|---|---|
| String | The key. |
OwnerIdentity
Gets or sets the owner identity.
Declaration
public string OwnerIdentity { get; set; }
Property Value
| Type | Description |
|---|---|
| String | The owner identity. |
Region
Gets or sets the region.
Declaration
public string Region { get; set; }
Property Value
| Type | Description |
|---|---|
| String | The region. |
Methods
| Improve this Doc View SourceDeserialize(String)
Deserializes the message.
Declaration
public static BackplaneMessage Deserialize(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | The message. |
Returns
| Type | Description |
|---|---|
| BackplaneMessage | The new BackplaneMessage instance. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If message is null. |
| InvalidOperationException | If the message is not valid. |
ForChanged(String, String, CacheItemChangedEventAction)
Creates a new BackplaneMessage for the changed action.
Declaration
public static BackplaneMessage ForChanged(string owner, string key, CacheItemChangedEventAction changeAction)
Parameters
| Type | Name | Description |
|---|---|---|
| String | owner | The owner. |
| String | key | The key. |
| CacheItemChangedEventAction | changeAction | The cache change action. |
Returns
| Type | Description |
|---|---|
| BackplaneMessage | The new BackplaneMessage instance. |
ForChanged(String, String, String, CacheItemChangedEventAction)
Creates a new BackplaneMessage for the changed action.
Declaration
public static BackplaneMessage ForChanged(string owner, string key, string region, CacheItemChangedEventAction changeAction)
Parameters
| Type | Name | Description |
|---|---|---|
| String | owner | The owner. |
| String | key | The key. |
| String | region | The region. |
| CacheItemChangedEventAction | changeAction | The cache change action. |
Returns
| Type | Description |
|---|---|
| BackplaneMessage | The new BackplaneMessage instance. |
ForClear(String)
Creates a new BackplaneMessage for the clear action.
Declaration
public static BackplaneMessage ForClear(string owner)
Parameters
| Type | Name | Description |
|---|---|---|
| String | owner | The owner. |
Returns
| Type | Description |
|---|---|
| BackplaneMessage | The new BackplaneMessage instance. |
ForClearRegion(String, String)
Creates a new BackplaneMessage for the clear region action.
Declaration
public static BackplaneMessage ForClearRegion(string owner, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| String | owner | The owner. |
| String | region | The region. |
Returns
| Type | Description |
|---|---|
| BackplaneMessage | The new BackplaneMessage instance. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | If region is null. |
ForRemoved(String, String)
Creates a new BackplaneMessage for the removed action.
Declaration
public static BackplaneMessage ForRemoved(string owner, string key)
Parameters
| Type | Name | Description |
|---|---|---|
| String | owner | The owner. |
| String | key | The key. |
Returns
| Type | Description |
|---|---|
| BackplaneMessage | The new BackplaneMessage instance. |
ForRemoved(String, String, String)
Creates a new BackplaneMessage for the removed action.
Declaration
public static BackplaneMessage ForRemoved(string owner, string key, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| String | owner | The owner. |
| String | key | The key. |
| String | region | The region. |
Returns
| Type | Description |
|---|---|
| BackplaneMessage | The new BackplaneMessage instance. |
Serialize()
Serializes this instance.
Declaration
public string Serialize()
Returns
| Type | Description |
|---|---|
| String | The string representing this message. |