MetaMantleServerEngine constructor

MetaMantleServerEngine({
  1. List<MetaRoute> routes = const [],
  2. MetaMantleConfig config = const MetaMantleConfig(),
  3. MetaMantleCacheStore? cacheStore,
  4. RedirectManager? redirectManager,
  5. SingleFlightCoordinator? singleFlight,
  6. TenantHostValidator? tenantHostValidator,
  7. FileHtmlArtifactStore? artifactStore,
  8. FileHtmlArtifactStore? artifactStoreForTenant(
    1. TenantContext tenant
    )?,
  9. Duration? artifactMaxAge,
  10. Duration artifactStaleWhileRevalidate = const Duration(seconds: 60),
  11. Future<void> onStaleArtifact(
    1. String path,
    2. RouteDependency dependency
    )?,
})

Implementation

MetaMantleServerEngine({
  this.routes = const [],
  this.config = const MetaMantleConfig(),
  MetaMantleCacheStore? cacheStore,
  RedirectManager? redirectManager,
  SingleFlightCoordinator? singleFlight,
  this.tenantHostValidator,
  this.artifactStore,
  this.artifactStoreForTenant,
  this.artifactMaxAge,
  this.artifactStaleWhileRevalidate = const Duration(seconds: 60),
  this.onStaleArtifact,
}) : cache = cacheStore ?? MemoryCacheStore(),
     redirects = redirectManager ?? RedirectManager(),
     singleFlight = singleFlight ?? SingleFlightCoordinator();