/// <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); }
/// <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); }
/// <summary> /// Get a configuration by path. /// </summary> public static void SaveConfig(string path, Node node, Act <Configuration> onSave = null) { SaveConfig(path, node, onSave, true); }
/// <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); }
/// <summary> /// Get a configuration by path. /// </summary> public static void LoadConfig(string path, Act <Configuration> onLoad) { LoadConfig(path, onLoad, true); }