HpsvPersistentContext Class |
Namespace: HP.SV.DotNetRuleApi
public class HpsvPersistentContext : HpsvContext
The HpsvPersistentContext type exposes the following members.
Name | Description | |
---|---|---|
Item | Gets or sets the value associated with the specified key. (Inherited from HpsvContext.) | |
Keys |
Returns all keys stored within the context.
(Inherited from HpsvContext.) |
Name | Description | |
---|---|---|
Add |
Adds or Replaces the value for a given key
(Inherited from HpsvContext.) | |
AddPersistent |
Adds or Replaces the value for a given key, the value will survive SV restart
| |
Clear |
Removes all keys and values from the context
(Inherited from HpsvContext.) | |
ContainsKey |
Checks if it contains a given key
(Inherited from HpsvContext.) | |
Remove |
Removes value for a given key
(Inherited from HpsvContext.) | |
TryGetDeserializedValueT |
Tries to re-serialize stored value. This is useful when you need to pass object between multiple service operations or multiple services.
If such object is defined within a shared script then it is internally a distinct .NET type for each service operation.
This method tries to overcome that via binary serialization/deserialization
(Inherited from HpsvContext.) | |
TryGetValueT | Attempts to get the value associated with the specified key. (Inherited from HpsvContext.) |