public static async Task WaitForCompletion(this WSRequestService wsRequestService, PersonService.WSSession wsSession, long requestId) { var request = await wsRequestService.getRequestAsync(new WSSession { sessionID = wsSession.sessionID, clientSession = wsSession.clientSession }, requestId); var processStateString = request.processStateString; var times = 0; while (processStateString != "Completed" && times < 10) { //poll await Task.Delay(DELAY_TIME); request = await wsRequestService.getRequestAsync(new WSSession { sessionID = wsSession.sessionID, clientSession = wsSession.clientSession }, requestId); processStateString = request.processStateString; times++; } }
public AccountRepository(WSPersonService personService, ISecurityRepository securityRepo, WSRequestService wsRequestService, TicketProvider ticketProvider) { _personService = personService; _securityRepo = securityRepo; _ticketProvider = ticketProvider; _wsRequestService = wsRequestService; }
public SecurityRepository(ISecurityService securityService, WSPersonService personService, WSRequestService wsRequestService, TicketProvider ticketProvider) { _securityService = securityService; _personService = personService; _ticketProvider = ticketProvider; _wsRequestService = wsRequestService; }
public OrganizationUserRepository( ISecurityService securityService, WSPersonService personService, WSRequestService wsRequestService, TicketProvider ticketProvider) { _ticketProvider = ticketProvider; _securityService = securityService; _personService = personService; _wsRequestService = wsRequestService; }