using System; using Curtain.Log; using Curtain.WCF.Proxy; using Dongke.IBOSS.PRD.WCF.Contracts; namespace PLC_S.Proxy { public class SmartDeviceProxy : WCFProxy { public SmartDeviceProxy() : base("endpoint_SmartDevice", (string)null, "SmartDeviceService") { } public SmartDeviceProxy(WCFProxySetting setting) : base("endpoint_SmartDevice", setting, "SmartDeviceService") { } public SmartDeviceProxy(string settingName) : 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) { Logger.Error(ex, methodName, "MES"); return null; //return ex; } //protected override TResult InvokeDone(string methodName, TResult result, bool isOneWay = false) //{ // return result; // return Commons.InvokeDone(methodName, result, isOneWay); //} } }