using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Update.LoginService;
|
|
using System.ServiceModel;
|
|
using Update.Utils;
|
|
using WeighBusiness;
|
|
|
|
namespace Update.WCF_
|
|
{
|
|
public class LoginClient : LoginServiceClient
|
|
{
|
|
public LoginClient()
|
|
: base(new BasicHttpBinding(BasicHttpSecurityMode.None), new EndpointAddress(Url))
|
|
{
|
|
}
|
|
|
|
static string Url
|
|
{
|
|
get
|
|
{
|
|
#if DEBUG
|
|
return Config.LoginAddress;
|
|
#else
|
|
string head = Config.SystemIP;
|
|
if (!head.EndsWith("/"))
|
|
head += "/";
|
|
return head + "B2/LoginService.svc";
|
|
#endif
|
|
}
|
|
}
|
|
}
|
|
}
|