addScoped<TService> method

ServiceCollection addScoped<TService>(
  1. ImplementationFactory implementationFactory
)

Implementation

ServiceCollection addScoped<TService>(
  ImplementationFactory implementationFactory,
) {
  var descriptor = ServiceDescriptor.scoped<TService>(
    implementationFactory,
  );
  add(descriptor);
  return this;
}