Abstract
Creates a new service instance.
Service name for logging
Logger instance for this service
Private
_Protected
Readonly
loggerLogger instance for this service
Protected
Readonly
nameService name for logging
Gets the current service state.
Protected
assertDisposes the service and cleans up resources. Ensures disposal only happens once.
Initializes the service. Ensures initialization only happens once and tracks state.
Protected
Abstract
onImplementation-specific disposal logic. Called once during dispose().
Protected
Abstract
onImplementation-specific initialization logic. Called once during initialize().
Base class for all services with lifecycle management. Handles initialization, disposal, and state tracking.
Example