using System; using Curtain.WCF.Proxy; using Dongke.IBOSS.PRD.WCF.Contracts; using PCLCommunication; namespace PLCCommunication.Proxy { public class SmartDeviceProxy : WCFProxy { private SmartDeviceProxy(WCFProxySetting setting) : base("endpoint_SmartDevice", setting, "SmartDeviceService") { } public SmartDeviceProxy(string settingName = null) : base("endpoint_SmartDevice", settingName, "SmartDeviceService") { } private static SmartDeviceProxy _instance = null; /// /// 默认代理 /// public static SmartDeviceProxy Instance { get { if (_instance == null) { _instance = new SmartDeviceProxy(); } return _instance; } } protected override Exception InvokeException(string methodName, Exception ex) { LogOut.Error(this.ServiceName, ex, methodName); return null; //return ex; } //protected override TResult InvokeDone(string methodName, TResult result, bool isOneWay = false) //{ // return result; // return Commons.InvokeDone(methodName, result, isOneWay); //} } }