| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
-
- using System;
- using Curtain.Log;
- using Curtain.WCF.Proxy;
- using Dongke.IBOSS.PRD.WCF.Contracts;
- namespace PLC_S.Proxy
- {
- public class SmartDeviceProxy : WCFProxy<ISmartDevice>
- {
- 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;
- /// <summary>
- /// 默认代理
- /// </summary>
- 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<TResult>(string methodName, TResult result, bool isOneWay = false)
- //{
- // return result;
- // return Commons.InvokeDone(methodName, result, isOneWay);
- //}
- }
- }
|