Navigation :
Introduction
FAQ
Setup, deployment & projects
Getting started
Examples
Catel.Core
Catel.MVVM
Catel.Fody
Catel.ReSharper
Tips & tricks
API reference
-
Catel.Cores
--
Catel
---
Catel.Android
---
Catel.ApiCop
---
Catel.Caching
---
Catel.Collections
---
Catel.ComponentModel
---
Catel.Configuration
---
Catel.Core
---
Catel.Data
---
Catel.ExceptionHandling
---
Catel.IO
---
Catel.IoC
---- CatelDependencyResolver
---- CircularDependencyException
---- DependencyResolverExtensions
---- DependencyResolverManager
---- ExternalContainerNotSupportedException
---- FirstInterfaceRegistrationConvention
---- IDependencyResolver
---- IDependencyResolverManager
---- INeedCustomInitialization
---- IRegistrationConvention
---- IRegistrationConventionHandler
---- IServiceLocator
---- IServiceLocatorInitializer
---- ITypeFactory
---- ITypeRequestPath
---- InjectAttribute
---- InjectionConstructorAttribute
---- IoCConfiguration
---- IoCConfigurationSection
---- IoCFactory
---- LateBoundImplementation
---- MissingTypeEventArgs
---- NamingRegistrationConvention
---- ObjectExtensions
---- Registration
---- RegistrationConventionBase
---- RegistrationConventionHandler
---- RegistrationConventionHandlerExtensions
---- RegistrationInfo
---- RegistrationType
---- ServiceLocator
---- ServiceLocatorAutoRegistrationManager
---- ServiceLocatorConfiguration
---- ServiceLocatorConfigurationCollection
---- ServiceLocatorExtensions
---- ServiceLocatorRegistration
---- ServiceLocatorRegistrationAttribute
---- ServiceLocatorRegistrationGroup
---- ServiceLocatorRegistrationMode
---- TypeFactory
---- TypeFactoryExtensions
---- TypeInstantiatedEventArgs
---- TypeNotRegisteredException
---- TypeRegisteredEventArgs
---- TypeRequestInfo
---- TypeRequestPath
---
Catel.Linq
---
Catel.Logging
---
Catel.Messaging
---
Catel.Pooling
---
Catel.Reflection
---
Catel.Runtime
---
Catel.Scoping
---
Catel.Services
---
Catel.Test
---
Catel.Text
---
Catel.Threading
--- Argument
--- AsyncEventHandler
--- AsyncEventHandlerExtensions
--- ByteArrayExtensions
--- CatelEnvironment
--- CompositeFilter
--- CompositePredicate
--- CoreModule
--- DesignTimeCodeAttribute
--- DesignTimeHelper
--- DesignTimeInitializer
--- Disposable
--- DisposableToken
--- Enum
--- EnvironmentHelper
--- EventHandlerExtensions
--- ExceptionExtensions
--- ExceptionFactory
--- ExpressionHelper
--- FastDateTime
--- HashHelper
--- IBindableEnum
--- ICommandManagerExtensions
--- ICompositeFilter
--- IDisposableToken
--- IExecute
--- IExecuteWithObject
--- IFluent
--- INotifyPropertyChangedExtensions
--- IUniqueIdentifyable
--- IWeakAction
--- IWeakEventListener
--- IWeakFunc
--- IWeakReference
--- JsonExtensions
--- KnownPlatforms
--- LanguageHelper
--- MVVMModule
--- MustBeImplementedException
--- NotSupportedInPlatformException
--- ObjectHelper
--- ObjectToStringHelper
--- OpenInstanceActionHandler
--- OpenInstanceEventHandler
--- ParallelHelper
--- Platforms
--- ProcessExtensions
--- ProgressContext
--- ResourceHelper
--- SerializationJsonModule
--- StringExtensions
--- StringToObjectHelper
--- SupportedPlatforms
--- TagHelper
--- ThemeHelper
--- ThreadHelper
--- UniqueIdentifierHelper
--- UriExtensions
--- WeakAction
--- WeakActionBase
--- WeakEventListener
--- WeakFunc
--
Systems
-
Catel.MVVMs
-
Catel.Serialization.Jsons
DependencyResolverManager
Name
Value
Assembly
Catel.Core
Namespace
Catel.IoC
Available on
.NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public class DependencyResolverManager : IDependencyResolverManager
Implements interfaces
IDependencyResolverManager
The dependency resolver manager.
Fields
Constructors
DependencyResolverManager()
Initializes a new instance of the DependencyResolverManager class.
Properties
Default
Gets or the default instance.
DefaultDependencyResolver
Gets or sets the default dependency resolver.
Exceptions
Name
Description
ArgumentNullException
The value isnull
.
Methods
GetDependencyResolverForInstance(object instance)
Gets the dependency resolver for a specific instance. If there is no dependency resolver registered for the specific instance, this method will use the GetDependencyResolverForType(Type).
Parameters
Name
Description
instance
The instance to retrieve the dependency resolver for.
Returns
The IDependencyResolver for the object.
Exceptions
Name
Description
ArgumentNullException
The instance isnull
.
GetDependencyResolverForType(Type type)
Gets the dependency resolver for a specific type. If there is no dependency resolver registered for the specific type, this method will returns the DefaultDependencyResolver.
Parameters
Name
Description
type
The type.
Returns
The IDependencyResolver for the type.
Exceptions
Name
Description
ArgumentNullException
The type isnull
.
RegisterDependencyResolverForInstance(object instance, IDependencyResolver dependencyResolver)
Registers the dependency resolver for a specific instance.
Parameters
Name
Description
instance
The instance.
dependencyResolver
The dependency resolver.
Exceptions
Name
Description
ArgumentNullException
The instance isnull
.
RegisterDependencyResolverForType(Type type, IDependencyResolver dependencyResolver)
Registers the dependency resolver for a specific type.
Parameters
Name
Description
type
The type.
dependencyResolver
The dependency resolver.
Exceptions
Name
Description
ArgumentNullException
The type isnull
.
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion
Please enable JavaScript to view the comments powered by Disqus.