ProjectBrowserSession constructor

ProjectBrowserSession({
  1. required ProjectOperationProfile profile,
  2. required Directory workspace,
  3. required ProcessLeaseRegistry leaseRegistry,
  4. String? leaseId,
  5. ProcessLiveness? liveness,
  6. ProcessTreeProbe? treeProbe,
  7. Duration readinessTimeout = const Duration(seconds: 30),
  8. Duration stopGrace = const Duration(seconds: 3),
})

Creates a session.

Implementation

ProjectBrowserSession({
  required this.profile,
  required this.workspace,
  required this.leaseRegistry,
  this.leaseId,
  ProcessLiveness? liveness,
  ProcessTreeProbe? treeProbe,
  this.readinessTimeout = const Duration(seconds: 30),
  this.stopGrace = const Duration(seconds: 3),
}) : liveness = liveness ?? const HostProcessLiveness(),
     treeProbe = treeProbe ?? const HostProcessTreeProbe();