public bool ReconServiceStatus() { ReconWcfServiceClient ServiceConnection = new ReconWcfServiceClient(); ServiceConnection.Open(); bool Status = ServiceConnection.ReconServiceStatus(); ServiceConnection.Close(); return(Status); }
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); }
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)); }