/
githubmirror
/
nest
Обзор
Документация
Войти
/
githubmirror
/
nest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
integration/scopes/src/nested-transient/second-request.service.ts
12 строк
370 B
mag123c
test(core): add nested transient isolation integration test
22 окт 2025, 03:34
22 окт 2025, 03:34
cde4fb8
Код
Авторство
О чём код?
import { Injectable, Scope } from '@nestjs/common'; import { TransientLoggerService } from './transient-logger.service'; @Injectable({ scope: Scope.REQUEST }) export class SecondRequestService { static COUNTER = 0; constructor(public readonly logger: TransientLoggerService) { SecondRequestService.COUNTER++; this.logger.setContext('SecondService'); } }