public Task <openSessionResponse> OpenSessionAsync(xmbOpenSession openSession) { _logger.LogInformation($"HackneyAppointmentsService/OpenSessionAsync(): Sent request to upstream AppointmentServiceClient (Id: {openSession.id})"); var response = _client.openSessionAsync(openSession); _logger.LogInformation($"HackneyAppointmentsService/OpenSessionAsync(): Received response from upstream PropertyServiceClient (Id: {openSession.id})"); return(response); }
public Task <openSessionResponse> OpenSessionAsync(xmbOpenSession openSession) { return(Task.Run(() => new openSessionResponse { @return = new xmbOpenSessionResponse { status = responseStatus.success, sessionId = "123456" } })); }
public async Task OpenSession() { var xmbOpenSession = new xmbOpenSession { login = _drsOptions.Value.Login, password = _drsOptions.Value.Password }; var response = await _drsSoap.openSessionAsync(new openSession { openSession1 = xmbOpenSession }); if ([email protected] != responseStatus.success) { _logger.LogError([email protected]); throw new ApiException((int)[email protected], [email protected]); } _sessionId = [email protected]; }