Beispiel #1
0
 public string GetFriendlyName()
 {
     using (var client = new ServiceReference1.BasicServicePortTypeClient())
     {
         client.Endpoint.Address = new EndpointAddress(EndPointAddress);
         var state = client.GetFriendlyName(new ServiceReference1.GetFriendlyName());
         return(state.FriendlyName);
     }
 }
Beispiel #2
0
 public string GetLogFileURL()
 {
     using (var client = new ServiceReference1.BasicServicePortTypeClient())
     {
         client.Endpoint.Address = new EndpointAddress(EndPointAddress);
         var state = client.GetLogFileURL(new ServiceReference1.GetLogFileURL());
         return(state.LOGURL);
     }
 }
Beispiel #3
0
 public string GetSignalStrength()
 {
     using (var client = new ServiceReference1.BasicServicePortTypeClient())
     {
         client.Endpoint.Address = new EndpointAddress(EndPointAddress);
         var state = client.GetSignalStrength(new ServiceReference1.GetSignalStrength());
         return(state.SignalStrength);
     }
 }
Beispiel #4
0
 public void ChangeFriendlyName()
 {
     using (var client = new ServiceReference1.BasicServicePortTypeClient())
     {
         client.Endpoint.Address = new EndpointAddress(EndPointAddress);
         var msg = new ServiceReference1.ChangeFriendlyName {
             FriendlyName = "0"
         };
         var state = client.ChangeFriendlyName(msg);
     }
 }
Beispiel #5
0
 public string Off()
 {
     using (var client = new ServiceReference1.BasicServicePortTypeClient())
     {
         client.Endpoint.Address = new EndpointAddress(EndPointAddress);
         var msg = new ServiceReference1.SetBinaryState {
             BinaryState = "0"
         };
         var state = client.SetBinaryState(msg);
         return(state.BinaryState);
     }
 }