예제 #1
0
        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++;
            }
        }
예제 #2
0
 public AccountRepository(WSPersonService personService, ISecurityRepository securityRepo, WSRequestService wsRequestService, TicketProvider ticketProvider)
 {
     _personService    = personService;
     _securityRepo     = securityRepo;
     _ticketProvider   = ticketProvider;
     _wsRequestService = wsRequestService;
 }
예제 #3
0
 public SecurityRepository(ISecurityService securityService,
                           WSPersonService personService,
                           WSRequestService wsRequestService,
                           TicketProvider ticketProvider)
 {
     _securityService  = securityService;
     _personService    = personService;
     _ticketProvider   = ticketProvider;
     _wsRequestService = wsRequestService;
 }
예제 #4
0
 public OrganizationUserRepository(
     ISecurityService securityService,
     WSPersonService personService,
     WSRequestService wsRequestService,
     TicketProvider ticketProvider)
 {
     _ticketProvider   = ticketProvider;
     _securityService  = securityService;
     _personService    = personService;
     _wsRequestService = wsRequestService;
 }