Provides functionality for communication with the Shared Data Server.
Inheritance Hierarchy
Facilita.Fc.Runtime SharedData
Namespace: Facilita.Fc.Runtime
Assembly: fc_clr (in fc_clr.dll) Version: 9.5.7.98
Syntax
Remarks
- Data can saved in a common data store and read by other Virtual Users.
- Data can be saved and retrieved as FIFO (first in, first out) and LIFO (last in, first out) lists against keys.
- Data can be saved as single key/value pairs.
- Virtual Users will optionally wait until the requested data becomes available.
- Access is locked between Virtual Users for atomic operations.
Examples
// Declare a double and convert to string double uid = 1234.567; string value = uid.ToString(); // Add it to the front of a shared list sharedData.AddFirst("UID", value); // Retrieve and then convert back to a double value = sharedData.First("UID", -1); Double.TryParse(value, out uid);
See Also