Class CacheActionEventArgs
Event arguments for cache actions.
Inherited Members
Namespace:CacheManager.Core.Internal
Assembly:CacheManager.Core.dll
Syntax
public sealed class CacheActionEventArgs : EventArgs
Constructors
| Improve this Doc View SourceCacheActionEventArgs(String, String)
Initializes a new instance of the CacheActionEventArgs class.
Declaration
public CacheActionEventArgs(string key, string region)
Parameters
Type | Name | Description |
---|---|---|
String | key | The key. |
String | region | The region. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | If key is null. |
CacheActionEventArgs(String, String, CacheActionEventArgOrigin)
Initializes a new instance of the CacheActionEventArgs class.
Declaration
public CacheActionEventArgs(string key, string region, CacheActionEventArgOrigin origin)
Parameters
Type | Name | Description |
---|---|---|
String | key | The key. |
String | region | The region. |
CacheActionEventArgOrigin | origin | The origin the event ocured. If remote, the event got triggered by the backplane and was not actually excecuted locally. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | If key is null. |
Properties
| Improve this Doc View SourceKey
Gets the key.
Declaration
public string Key { get; }
Property Value
Type | Description |
---|---|
String | The key. |
Origin
Gets the event origin indicating if the event was triggered by a local action or remotly, through the backplane.
Declaration
public CacheActionEventArgOrigin Origin { get; }
Property Value
Type | Description |
---|---|
CacheActionEventArgOrigin |
Region
Gets the region.
Declaration
public string Region { get; }
Property Value
Type | Description |
---|---|
String | The region. |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |