コード例 #1
0
ファイル: Counterparty.svc.cs プロジェクト: GDuggi/DemoTest
        public GetAgreementListResponse getAgreementList(GetAgreementListRequest getAgreementListRequest)
        {
            try
            {
                Log.Info("Counterparty GetAgreementListRequest: " + (getAgreementListRequest == null ? "null" : getAgreementListRequest.ToString()));

                //var client = new GetCptyInfoService.CptyInfoClient();
                //var response = client.getAgreementList(request);

                var agreements = new Agreement[] { new Agreement("AgreementType1") };
                var response   = new GetAgreementListResponse(agreements);

                Log.Info("Counterparty GetAgreementListResponse: " + (response == null ? "null" : response.ToString()));
                return(response);
            }
            catch (Exception e)
            {
                Log.Error("Failed to process getAgreementList() service call", e);
                throw e;
            }
        }
コード例 #2
0
        public GetAgreementListResponse getAgreementList(GetAgreementListRequest getAgreementListRequest)
        {
            try
            {
                Log.Info("Counterparty GetAgreementListRequest: " + (getAgreementListRequest == null ? "null" : getAgreementListRequest.ToString()));

                //var client = new GetCptyInfoService.CptyInfoClient();
                //var response = client.getAgreementList(request);

                var agreements = new Agreement[] { new Agreement("AgreementType1") };
                var response = new GetAgreementListResponse(agreements);

                Log.Info("Counterparty GetAgreementListResponse: " + (response == null ? "null" : response.ToString()));
                return response;
            }
            catch (Exception e)
            {
                Log.Error("Failed to process getAgreementList() service call", e);
                throw e;
            }

        }