Context constructor

Context(
  1. Request req,
  2. {SessionManager sessionManager,
  3. Logger log,
  4. Map<Type, UserFetcher<AuthorizationUser>> userFetchers,
  5. List<RouteInterceptor> before,
  6. List<RouteInterceptor> after,
  7. List<ExceptionHandler> onException,
  8. Map<String, CodecRepo> serializers,
  9. DateTime at}
)

Implementation

Context(this.req,
    {this.sessionManager,
    this.log,
    this.userFetchers,
    this.before,
    this.after,
    this.onException,
    Map<String, CodecRepo> serializers,
    DateTime at})
    : _serializers = serializers ?? <String, CodecRepo>{},
      at = at ?? DateTime.now().toUtc();