public PingResult Ping(string message) { try { _avaLog.Debug("AddressSvc.Ping"); ProxyPingResult svcResult = (ProxyPingResult)base.InvokeService(typeof(ProxyAddressSvc), MethodBase.GetCurrentMethod().Name, new object[] { message }); _avaLog.Debug("Copying result from proxy object"); PingResult localResult = new PingResult(); localResult.CopyFrom(svcResult); //load local object with service results return(localResult); } catch (Exception ex) { return(PingResult.CastFromBaseResult(ExceptionManager.HandleException(ex))); } }
internal void CopyFrom(ProxyPingResult SvcResult) { //load local object with service return values base.CopyFrom(SvcResult); _version = SvcResult.Version; }