Ejemplo n.º 1
0
 public RequestContext(IRequest request, IResponse response,
     ISessionStore sessionStore, IAuthenticator authenticator,
     IIoCContainer container, IFeatureSet features,
     Interceptors interceptors = null)
 {
     Request = request;
     Response = response;
     _sessionStore = sessionStore;
     _authenticator = authenticator;
     _container = new ContainerWrapper(container);
     Features = features;
     _interceptors = interceptors ?? new Interceptors();
 }
Ejemplo n.º 2
0
 public RequestProcessor(
     IEnumerable<IInterceptor> interceptors,
     ISessionStore sessionStore,
     IAuthenticator authenticator,
     FeatureSet features,
     IIoCContainer featureSetContainer,
     ISettings settings,
     IArbitrator negotiator
 )
 {
     _interceptors = new Interceptors(interceptors);
     _sessionStore = sessionStore;
     _authenticator = authenticator;
     _features = features;
     _featureSetContainer = featureSetContainer;
     _settings = settings;
     _negotiator = negotiator;
 }