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.
 

34 lines
605 B

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
}
}
}
}