예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #5
0
 /// <summary>
 /// Get a configuration by path.
 /// </summary>
 public static void LoadConfig(string path, Act <Configuration> onLoad)
 {
     LoadConfig(path, onLoad, true);
 }