Reads and removes the last value from a value list in the Shared Data Server.
Namespace: Facilita.Fc.RuntimeAssembly: fc_clr (in fc_clr.dll) Version: 9.5.8.37
Syntax
Parameters
- key
- Type: System String
The key against which the data is stored.
- timeout
- Type: System Int32
The maximum time in milliseconds to wait for a value to become available.
Return Value
The last value in the list.Exceptions
Exception | Condition |
---|---|
Facilita.Exception NoSuchValueException | The request has timed out. |
Remarks
Note |
---|
The keys are case-sensitive. |
Note |
---|
The value is removed from the list. |
Examples
using Facilita.Fc.Runtime; SharedData sharedData = new SharedData(GetString("sharedDataHost", "localhost"), GetInt("sharedDataPort", 5099)); string accountNum = sharedData.RemoveLast("AccNum", 90000); // wait up to 90 seconds for a value
See Also