Ejemplo n.º 1
0
        public static void Release(string CSP)
        {
            StringVector sv = new StringVector();

            sv.Add(CSP);
            StcIntCSharp.salRelease(sv);
        }
Ejemplo n.º 2
0
        public static void Config(string handle, Dictionary <string, string> propertyPairs)
        {
            StringVector sv = new StringVector();

            MapToStringVector(propertyPairs, sv);
            StcIntCSharp.salSet(handle, sv);
        }
Ejemplo n.º 3
0
        public static void Disconnect(string hostName)
        {
            StringVector sv = new StringVector();

            sv.Add(hostName);
            StcIntCSharp.salDisconnect(sv);
        }
Ejemplo n.º 4
0
        public static string Subscribe(Dictionary <string, string> inputParameters)
        {
            StringVector sv = new StringVector();

            MapToStringVector(inputParameters, sv);
            return(StcIntCSharp.salSubscribe(sv));
        }
Ejemplo n.º 5
0
        public static string Create(string type, string parent)
        {
            StringVector sv = new StringVector();

            sv.Add("-under");
            sv.Add(parent);
            return(StcIntCSharp.salCreate(type, sv));
        }
Ejemplo n.º 6
0
        public static void Config(string handle, string attribName, string attribValue)
        {
            StringVector sv = new StringVector();

            sv.Add("-" + attribName);
            sv.Add(attribValue);
            StcIntCSharp.salSet(handle, sv);
        }
Ejemplo n.º 7
0
        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));
        }
Ejemplo n.º 8
0
        public static string Get(string handle, string property)
        {
            StringVector sv = new StringVector();

            sv.Add("-" + property);
            StringVector sv2 = StcIntCSharp.salGet(handle, sv);

            return(sv2[0]);
        }
Ejemplo n.º 9
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));
        }
Ejemplo n.º 10
0
        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();
        }
Ejemplo n.º 11
0
 public static void Unsubscribe(string handle)
 {
     StcIntCSharp.salUnsubscribe(handle);
 }
Ejemplo n.º 12
0
 public static Dictionary <string, string> Get(string handle)
 {
     return(StringVectorToMap(StcIntCSharp.salGet(handle, new StringVector())));
 }
Ejemplo n.º 13
0
 public static void Delete(string handle)
 {
     StcIntCSharp.salDelete(handle);
 }
Ejemplo n.º 14
0
        public static void Disconnect(List <string> hostNames)
        {
            StringVector sv = new StringVector(hostNames);

            StcIntCSharp.salDisconnect(sv);
        }
Ejemplo n.º 15
0
        public static Dictionary <string, string> Get(string handle, List <string> properties)
        {
            StringVector sv = StcIntCSharp.salGet(handle, StringListToStringVector(properties));

            return(UnpackGetResponseAndReturnKeyVal(sv, properties));
        }
Ejemplo n.º 16
0
 public static Dictionary <string, string> Perform(string commandName)
 {
     return(StringVectorToMap(StcIntCSharp.salPerform(commandName, new StringVector())));
 }
Ejemplo n.º 17
0
 public static void Shutdown()
 {
     StcIntCSharp.salShutdown();
 }
Ejemplo n.º 18
0
 public static void Log(string logLevel, string message)
 {
     StcIntCSharp.salLog(logLevel, message);
 }
Ejemplo n.º 19
0
 public static void Apply()
 {
     StcIntCSharp.salApply();
 }
Ejemplo n.º 20
0
        public static void Release(List <string> CSPs)
        {
            StringVector sv = new StringVector(CSPs);

            StcIntCSharp.salRelease(sv);
        }