using SSWMS.Common; namespace SSWMS.Client { public class WCFChannel { public static I_BaseService _I_BaseService = null; public static I_CellService _I_CellService = null; public static I_ControlService _I_ControlService = null; public static I_ManageService _I_ManageService = null; public static I_PlanService _I_PlanService = null; public static I_StorageService _I_StorageService = null; public static I_SystemService _I_SystemService = null; public static void Init() { _I_BaseService = WCFService.CreateChannel(string.Format("{0}S_BaseService", AppSettings.ServiceUrl)); _I_CellService = WCFService.CreateChannel(string.Format("{0}S_CellService", AppSettings.ServiceUrl)); _I_ControlService = WCFService.CreateChannel(string.Format("{0}S_ControlService", AppSettings.ServiceUrl)); _I_ManageService = WCFService.CreateChannel(string.Format("{0}S_ManageService", AppSettings.ServiceUrl)); _I_PlanService = WCFService.CreateChannel(string.Format("{0}S_PlanService", AppSettings.ServiceUrl)); _I_StorageService = WCFService.CreateChannel(string.Format("{0}S_StorageService", AppSettings.ServiceUrl)); _I_SystemService = WCFService.CreateChannel(string.Format("{0}S_SystemService", AppSettings.ServiceUrl)); } } }