Class ProviderBridgeItem
When a conflict occurs, the Provider Bridge Item is sent to the Conflict Resolver as NewEntry and an OldEntry.
Inheritance
System.Object
ProviderBridgeItem
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class ProviderBridgeItem
Constructors
ProviderBridgeItem(String, Object, BridgeItemOpCodes, BridgeItemVersion)
Constructor of the class ProviderBridgeItem to set the key, value, operational costs and item version of Bridge items.
Declaration
public ProviderBridgeItem(string key, object value, BridgeItemOpCodes opCode, BridgeItemVersion itemVersion)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Contains key of an item. |
System.Object | value | Contains value of an item. |
BridgeItemOpCodes | opCode | Contains BridgeItemOpCodes of bridgr items. |
BridgeItemVersion | itemVersion | Contains version of an item (LATEST, OLD, SAME). |
Properties
BridgeItemVersion
BridgeItemVersion provides the item version of the items.
Declaration
public BridgeItemVersion BridgeItemVersion { get; }
Property Value
Type | Description |
---|---|
BridgeItemVersion | Item version of the items. |
Key
It contains the key of an item.
Declaration
public string Key { get; }
Property Value
Type | Description |
---|---|
System.String | Key of an item. |
OpCode
It contains the BridgeItemOpCodes.
Declaration
public BridgeItemOpCodes OpCode { get; }
Property Value
Type | Description |
---|---|
BridgeItemOpCodes | Operational codes of Bridge Items. |
Value
This property contains the value of an item.
Declaration
public object Value { get; }
Property Value
Type | Description |
---|---|
System.Object | Value of an item. |