ServiceResolver<TService> class

namespace: Serenity.Extensions.DependencyInjection   assemblySerenity.Net.Core

A generic version of IServiceProvider which resolves a service on demand.

public class ServiceResolver<TService> : IServiceResolver<TService>
parameter description
TService

Public Members

name description
ServiceResolver(…) Initializes a new instance.
Resolve() Resolves TService using the service provider. If the service was registered as transient, this method acts like a factory.

See Also