getServiceScopeInternal method
Implementation
ServiceScopeImpl getServiceScopeInternal(String service) {
return _serviceScopes.putIfAbsent(service, () {
_logger.fine('Creating new service scope: $service');
// Use ServiceScopeImpl constructor
final scope = ServiceScopeImpl(
_limiter.getServiceLimits(service),
service, // Pass the service name directly for the 'name' field in ServiceScopeImpl
edges: [_systemScope],
);
scope.incRef(); // Service scopes are generally long-lived
return scope;
});
}