CS系统框架 - 负载均衡(Load Balancing)源码下载
CS系统框架 - 负载均衡(Load Balancing)源码下载
WebService.LoadBalance.Config.xml
1.ASP.Net开发环境服务器 - http://localhost:1534/WebService/
2.本地IIS服务器(LocalHost) - http://localhost/LoadBalancingTester/
3.其他IIS服务器 - http://192.168.1.7/LoadBalancingTester/
测试环境部署了3个WebService服务器,全部测试通过。
负载均衡服务器连线状态监控程序:
LoadBalance.rar
Source for VIP:
扫一扫加作者微信
WebService.LoadBalance.Config.xml
1.ASP.Net开发环境服务器 - http://localhost:1534/WebService/
2.本地IIS服务器(LocalHost) - http://localhost/LoadBalancingTester/
3.其他IIS服务器 - http://192.168.1.7/LoadBalancingTester/
测试环境部署了3个WebService服务器,全部测试通过。
C# Code:
public class WebServiceInventoryModule : System.Web.Services.WebService
{
public WebServiceInventoryModule()
{
}
[Description("测试WebService通信通道")]
[WebMethod]
public string TestChannel()
{
return "@SUCCESS";
}
[Description("查询实时库存")]
[WebMethod]
public DataSet GetStocks(string dateFrom, string dateTo)
{
return new DataSet();
}
}
//来源:C/S框架网(www.csframework.com) QQ:1980854898
public class WebServiceInventoryModule : System.Web.Services.WebService
{
public WebServiceInventoryModule()
{
}
[Description("测试WebService通信通道")]
[WebMethod]
public string TestChannel()
{
return "@SUCCESS";
}
[Description("查询实时库存")]
[WebMethod]
public DataSet GetStocks(string dateFrom, string dateTo)
{
return new DataSet();
}
}
//来源:C/S框架网(www.csframework.com) QQ:1980854898
C# Code:
public class WebServiceSalesModule : System.Web.Services.WebService
{
public WebServiceSalesModule()
{
//Uncomment the following line if using designed components
//InitializeComponent();
}
[Description("测试WebService通信通道")]
[WebMethod]
public string TestChannel()
{
return "@SUCCESS";
}
[Description("下载一张销售订单")]
[WebMethod]
public DataSet SO_GetBusinessByKey(string key)
{
return new DataSet();
}
[Description("删除一张销售订单")]
[WebMethod]
public bool SO_DeleteBusinessByKey(string key)
{
return true;
}
}
//来源:C/S框架网(www.csframework.com) QQ:1980854898
public class WebServiceSalesModule : System.Web.Services.WebService
{
public WebServiceSalesModule()
{
//Uncomment the following line if using designed components
//InitializeComponent();
}
[Description("测试WebService通信通道")]
[WebMethod]
public string TestChannel()
{
return "@SUCCESS";
}
[Description("下载一张销售订单")]
[WebMethod]
public DataSet SO_GetBusinessByKey(string key)
{
return new DataSet();
}
[Description("删除一张销售订单")]
[WebMethod]
public bool SO_DeleteBusinessByKey(string key)
{
return true;
}
}
//来源:C/S框架网(www.csframework.com) QQ:1980854898
负载均衡服务器连线状态监控程序:
LoadBalance.rar
Source for VIP:
扫一扫加作者微信
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网