tryAddKeyedSingletonInstance<TService> method
Implementation
void tryAddKeyedSingletonInstance<TService>(
Object? serviceKey,
Object implementationInstance,
) {
final descriptor = ServiceDescriptor.keyedSingletonInstance<TService>(
serviceKey,
implementationInstance,
);
tryAdd(descriptor);
}