Ejemplo n.º 1
0
        public bool ReconServiceStatus()
        {
            ReconWcfServiceClient ServiceConnection = new ReconWcfServiceClient();

            ServiceConnection.Open();
            bool Status = ServiceConnection.ReconServiceStatus();

            ServiceConnection.Close();
            return(Status);
        }
Ejemplo n.º 2
0
        public bool WriteRBit(string ServerIndex, string R_Value_address, string ElecValue, string Trigger)
        {
            ReconWcfServiceClient ServiceConnection = new ReconWcfServiceClient();

            ServiceConnection.Open();
            bool Flag = ServiceConnection.Write_R_Bit(ServerIndex, R_Value_address, ElecValue, Trigger);

            ServiceConnection.Close();
            return(Flag);
        }
Ejemplo n.º 3
0
        public string GetPollingData()
        {
            ReconWcfServiceClient ServiceConnection = new ReconWcfServiceClient();

            ServiceConnection.Open();
            Class_ReCONSync_Service[] Data = ServiceConnection.GetPollingData();
            ServiceConnection.Close();
            PollingDataRoot RootObj = new PollingDataRoot();

            RootObj.Data = Data;
            return(JsonConvert.SerializeObject(RootObj));
        }