Reads an integer value associated with the specified key in the Shared Data Server.
Namespace: Facilita.Fc.RuntimeAssembly: fc_clr (in fc_clr.dll) Version: 9.5.7.98
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
Value for key that was created by a previous call to Set(String, String).Exceptions
Exception | Condition |
---|---|
Facilita.Exception NoSuchValueException | The request has timed out. |
Remarks
Values can be set by calling SetInt(String, Int32).
Note |
---|
The keys are case-sensitive. |
Examples
using Facilita.Fc.Runtime; SharedData sharedData = new SharedData(GetString("sharedDataHost", "localhost"), GetInt("sharedDataPort", 5099)); int value = sharedData.GetInt("AccountNum", 0);
See Also