public RequestExecutionEngine(IRestfulService restService,
                               AgentIdentifier identifier, IRequestVisitor <string> endpointCreator, IRequestVisitor <string> headerTokenCreator,
                               IRequestVisitor <Dictionary <HttpStatusCode, LevelUpRestWrapper.ResponseAction> > customHttpStatusCodeHandlers)
 {
     _restWrapper                  = new LevelUpRestWrapper(restService, identifier);
     _endpointCreator              = endpointCreator;
     _headerTokenCreator           = headerTokenCreator;
     _customHttpStatusCodeHandlers = customHttpStatusCodeHandlers;
 }
Пример #2
0
 internal LevelUpClient(IRestfulService restService, AgentIdentifier identifier, LevelUpEnvironment targetEnviornment)
 {
     _restWrapper       = new LevelUpRestWrapper(restService, identifier);
     _targetEnviornment = targetEnviornment;
 }