Exemplo n.º 1
0
 /// <summary>
 /// Add or Get a connection to the connections known by the Api Manager.
 /// This opens the connection before the callback.
 /// </summary>
 public static void Get <C>(string path, Act <C> onOpen) where C : Connection <C>, new()
 {
     Get <C>(path, onOpen, true);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Get a supported class from the connection.
 /// </summary>
 public static void Get <T, C>(C connection, Act <T> onResource) where C : Connection <C>, IGetValue <T>, new()
 {
     Get <T, C>(connection, onResource, true);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Get a configuration by path.
 /// </summary>
 public static void SaveConfig(string path, Node node, Act <Configuration> onSave = null)
 {
     SaveConfig(path, node, onSave, true);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Get configuration node by path and key.
 /// </summary>
 public static void LoadNode(Act <Node> onLoad, string path, params string[] keys)
 {
     LoadNode(onLoad, path, keys, true);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Get a configuration by path.
 /// </summary>
 public static void LoadConfig(string path, Act <Configuration> onLoad)
 {
     LoadConfig(path, onLoad, true);
 }