コード例 #1
0
 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;
 }