Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zoe-codez committed Sep 20, 2024
1 parent 38b668d commit 74bfa27
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/services/wiring.extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,36 @@ function createBoilerplate() {
name: "boilerplate",
priorityInit: ["als", "configuration", "logger", "scheduler"],
services: {
/**
* [AsyncLocalStorage](https://nodejs.org/api/async_context.html) hooks
*
* Use to pass data around bypassing business logic and insert data into logs
*/
als: ALS,

/**
* @internal
*
* Exposed via `internal.boilerplate.configuration`
*
* Used to directly modify application configuration
*/
configuration: Configuration,

/**
* @internal
*
* Exposed via `internal.boilerplate.logger`
*
* Used to modify the way the logger works at runtime
*/
logger: Logger,

/**
* @internal
*
* Used to generate the scheduler that will get injected into other services
*/
scheduler: Scheduler,
},
});
Expand Down

0 comments on commit 74bfa27

Please sign in to comment.