public ProxyUploadSb() { if (GlobalAppConfig.RunningMode == 2) { Service = Function.UnitySection("unity.xml", "unityReport", "uploadsb").Resolve <ItfUploadSb>(); } else if (GlobalAppConfig.RunningMode == 3) { try { Service = WcfEndpoint.Fac <ItfUploadSb>().CreateChannel(WcfEndpoint.HisEndpointAddress(this.GetType().Name)); Service.Verify(); } catch { if (WcfEndpoint.AllowChange) { WcfEndpoint.ChangeServer(); Service = WcfEndpoint.Fac <ItfUploadSb>().CreateChannel(WcfEndpoint.HisEndpointAddress(this.GetType().Name)); } } } }
public ProxyEntityFactory() { if (GlobalAppConfig.RunningMode == 2) { Service = Function.UnitySection("unity.xml", "unityCommon", "entityfactory").Resolve <ItfEntityFactory>(); } else if (GlobalAppConfig.RunningMode == 3) { try { Service = WcfEndpoint.Fac <ItfEntityFactory>().CreateChannel(WcfEndpoint.HisEndpointAddress(this.GetType().Name)); Service.Verify(); } catch { if (WcfEndpoint.AllowChange) { WcfEndpoint.ChangeServer(); Service = WcfEndpoint.Fac <ItfEntityFactory>().CreateChannel(WcfEndpoint.HisEndpointAddress(this.GetType().Name)); } } } }
public ProxyFormDesign() { if (GlobalAppConfig.RunningMode == 2) { Service = Function.UnitySection("unity.xml", "unityConsole", "formdesign").Resolve <ItfFormDesign>(); } else if (GlobalAppConfig.RunningMode == 3) { try { Service = WcfEndpoint.Fac <ItfFormDesign>().CreateChannel(WcfEndpoint.HisEndpointAddress(this.GetType().Name)); Service.Verify(); } catch { if (WcfEndpoint.AllowChange) { WcfEndpoint.ChangeServer(); Service = WcfEndpoint.Fac <ItfFormDesign>().CreateChannel(WcfEndpoint.HisEndpointAddress(this.GetType().Name)); } } } }