IDependencyResolver Interface

[namespace: Serenity.Abstractions, assembly: Serenity.Core]

This interface defines the contract for dependency resolvers which are usually IoC containers that handles mapping between services and providers.

  1. public interface IDependencyResolver
  2. {
  3. TService Resolve<TService>() where TService : class;
  4. TService Resolve<TService>(string name) where TService : class;
  5. TService TryResolve<TService>() where TService : class;
  6. TService TryResolve<TService>(string name) where TService : class;
  7. }

All methods are functionally equal to corresponding methods in Dependency static class.