コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: MemberLogin.cs プロジェクト: washing0432/MySSO
 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;
 }
コード例 #3
0
 public Program()
 {
     lock (_lock)
     {
         if (_transactionServiceClient == null)
             _transactionServiceClient = new TransactionServiceClient();
         if (_memberServiceClient == null)
             _memberServiceClient = new MemberServiceClient();
     }
 }