static void Main(string[] args) { lock (_lock) { if (_transactionServiceClient == null) _transactionServiceClient = new TransactionServiceClient(); if (_memberServiceClient == null) _memberServiceClient = new MemberServiceClient(); } var allTransaction = GetTransaction(); var filteredTransaction =ExcludeExistingTransaction(allTransaction); ProcessSoftCash(filteredTransaction); Log(); }
private static bool CallLoginCheck(string pName, string pPassword, ref string pErrorMsg, ref int result, ref PersonMember person, ref string vno, ref string extCardNo) { using (var client = new MemberServiceClient()) { try { result = client.LoginCheck(out person, out vno, out extCardNo, pName, pPassword); if (person == null) { pErrorMsg = "用户名或密码无效"; return false; } } catch (SoapException soapException) { HZLogger.Error(soapException); pErrorMsg = "会员系统无法访问"; return false; } } return true; }
public Program() { lock (_lock) { if (_transactionServiceClient == null) _transactionServiceClient = new TransactionServiceClient(); if (_memberServiceClient == null) _memberServiceClient = new MemberServiceClient(); } }