public void SetUp() { theController = new ChannelFactory <ISmsControllerContract>("ISmsControllerContractService").CreateChannel(); theController.StopTheSmsThread(); theController.StopConnection(); }
protected void Page_Load(object sender, EventArgs e) { CheckId(); _TheSmsControllor = new ChannelFactory <ISmsControllerContract>("ISmsControllerContractService").CreateChannel(); if (!Page.IsPostBack) { DataBindsForClientInformations(); } lblMessage.Text = string.Empty; }
public void SetUp() { //控制接口 theController = new ChannelFactory <ISmsControllerContract>("ISmsControllerContractService").CreateChannel(); theController.StopTheSmsThread(); theController.StopConnection(); //数据接口 theDataServices = new ChannelFactory <ISmsServiceContract>("ISmsServiceContractService").CreateChannel(); //客户段监听接口 _SmsServiceTypeHost = new ServiceHost(typeof(MockClientServicesProvider)); _SmsServiceTypeHost.Open(); //清空数据 ClearAllAddressData(); }
protected void Page_Load(object sender, EventArgs e) { CheckId(); LoadComplete += OnLoadComplete; _TheSmsControllor = new ChannelFactory <ISmsControllerContract>("ISmsControllerContractService").CreateChannel(); lblBasicMessage.Text = string.Empty; lblGaoJiMessage.Text = string.Empty; lblTestResult.Text = string.Empty; if (!Page.IsPostBack) { ReflashStatus(); } }