public static void Release(string CSP) { StringVector sv = new StringVector(); sv.Add(CSP); StcIntCSharp.salRelease(sv); }
public static void Config(string handle, Dictionary <string, string> propertyPairs) { StringVector sv = new StringVector(); MapToStringVector(propertyPairs, sv); StcIntCSharp.salSet(handle, sv); }
public static void Disconnect(string hostName) { StringVector sv = new StringVector(); sv.Add(hostName); StcIntCSharp.salDisconnect(sv); }
public static string Subscribe(Dictionary <string, string> inputParameters) { StringVector sv = new StringVector(); MapToStringVector(inputParameters, sv); return(StcIntCSharp.salSubscribe(sv)); }
public static string Create(string type, string parent) { StringVector sv = new StringVector(); sv.Add("-under"); sv.Add(parent); return(StcIntCSharp.salCreate(type, sv)); }
public static void Config(string handle, string attribName, string attribValue) { StringVector sv = new StringVector(); sv.Add("-" + attribName); sv.Add(attribValue); StcIntCSharp.salSet(handle, sv); }
public static Dictionary <string, string> Perform(string commandName, Dictionary <string, string> propertyPairs) { StringVector sv = new StringVector(); MapToStringVector(propertyPairs, sv); StringVector retSv = StcIntCSharp.salPerform(commandName, sv); return(UnpackPerformResponseAndReturnKeyVal(retSv, propertyPairs)); }
public static string Get(string handle, string property) { StringVector sv = new StringVector(); sv.Add("-" + property); StringVector sv2 = StcIntCSharp.salGet(handle, sv); return(sv2[0]); }
public static string Create(string type, string parent, Dictionary <string, string> propertyPairs) { StringVector sv = new StringVector(); sv.Add("-under"); sv.Add(parent); MapToStringVector(propertyPairs, sv); return(StcIntCSharp.salCreate(type, sv)); }
public static void Init() { string installDir = System.Environment.GetEnvironmentVariable("STC_DIR"); if (String.IsNullOrEmpty(installDir)) { throw new ApplicationException("STC_DIR environment variable is not defined. It should be set to the STC install directory."); } string iniFile = Path.Combine(installDir, "stcbll.ini"); if (File.Exists(iniFile) == false) { throw new Exception(installDir + " is not a valid STC install directory."); } System.Environment.SetEnvironmentVariable("STC_PRIVATE_INSTALL_DIR", installDir); System.Environment.SetEnvironmentVariable("Path", System.Environment.GetEnvironmentVariable("Path") + ";" + installDir); StcIntCSharp.stcIntCSharpInit(); }
public static void Unsubscribe(string handle) { StcIntCSharp.salUnsubscribe(handle); }
public static Dictionary <string, string> Get(string handle) { return(StringVectorToMap(StcIntCSharp.salGet(handle, new StringVector()))); }
public static void Delete(string handle) { StcIntCSharp.salDelete(handle); }
public static void Disconnect(List <string> hostNames) { StringVector sv = new StringVector(hostNames); StcIntCSharp.salDisconnect(sv); }
public static Dictionary <string, string> Get(string handle, List <string> properties) { StringVector sv = StcIntCSharp.salGet(handle, StringListToStringVector(properties)); return(UnpackGetResponseAndReturnKeyVal(sv, properties)); }
public static Dictionary <string, string> Perform(string commandName) { return(StringVectorToMap(StcIntCSharp.salPerform(commandName, new StringVector()))); }
public static void Shutdown() { StcIntCSharp.salShutdown(); }
public static void Log(string logLevel, string message) { StcIntCSharp.salLog(logLevel, message); }
public static void Apply() { StcIntCSharp.salApply(); }
public static void Release(List <string> CSPs) { StringVector sv = new StringVector(CSPs); StcIntCSharp.salRelease(sv); }