巨石化纤
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.5 KiB

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<I_BaseService>(string.Format("{0}S_BaseService", AppSettings.ServiceUrl));
_I_CellService = WCFService.CreateChannel<I_CellService>(string.Format("{0}S_CellService", AppSettings.ServiceUrl));
_I_ControlService = WCFService.CreateChannel<I_ControlService>(string.Format("{0}S_ControlService", AppSettings.ServiceUrl));
_I_ManageService = WCFService.CreateChannel<I_ManageService>(string.Format("{0}S_ManageService", AppSettings.ServiceUrl));
_I_PlanService = WCFService.CreateChannel<I_PlanService>(string.Format("{0}S_PlanService", AppSettings.ServiceUrl));
_I_StorageService = WCFService.CreateChannel<I_StorageService>(string.Format("{0}S_StorageService", AppSettings.ServiceUrl));
_I_SystemService = WCFService.CreateChannel<I_SystemService>(string.Format("{0}S_SystemService", AppSettings.ServiceUrl));
}
}
}