private void GetResponse(ICollection<IPointToLaceProvider> response) { var webService = new ConfigureIvidTitleHolder(); using (var scope = new OperationContextScope(webService.Client.InnerChannel)) { OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = webService.RequestMessageProperty; var request = HandleRequest.GetTitleholderQueryRequest(response,_dataProvider.GetRequest<IAmIvidTitleholderRequest>()); _logCommand.LogConfiguration(new {request}, null); _logCommand.LogRequest(new ConnectionTypeIdentifier(webService.Client.Endpoint.Address.ToString()).ForWebApiType(), new { request }, _dataProvider.BillablleState.NoRecordState); _response = webService .Client .TitleholderQuery(request); webService.Close(); _logCommand.LogResponse(_response == null ? DataProviderResponseState.NoRecords : DataProviderResponseState.Successful, new ConnectionTypeIdentifier(webService.Client.Endpoint.Address.ToString()) .ForWebApiType(), _response ?? new TitleholderQueryResponse(), _dataProvider.BillablleState.NoRecordState); if (_response == null) _logCommand.LogFault(new {_dataProvider}, new {NoRequestReceived = "No response received from Ivid Title Holder Data Provider"}); } }
public TransformIvidTitleHolderResponse(TitleholderQueryResponse response) { Continue = response != null; Result = IvidTitleHolderResponse.Empty(); Message = response; }
public void CallTheDataProvider(ICollection<IPointToLaceProvider> response) { _ividTitleHolderResponse = new SourceResponseBuilder().ForIvidTitleHolder(); TransformResponse(response); }