File size: 614 Bytes
68d7816 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import { LifecycleScope } from '#/app/scopes';
import { ScopeActivation, registerScopedService } from '#/_base/di/scope';
import { StateRegistry } from '#/_base/state/stateRegistry';
import { ISessionStateService } from './sessionState';
export class SessionStateService extends StateRegistry implements ISessionStateService {
declare readonly _serviceBrand: undefined;
protected override readonly inspectScope = 'session';
constructor() {
super();
}
}
registerScopedService(
LifecycleScope.Session,
ISessionStateService,
SessionStateService,
ScopeActivation.OnScopeCreated,
'state',
);
|