ServiceLocator Class

Provides methods to explicitly resolve services in an IContainer.
Inheritance Hierarchy
SystemObject
  InjectMeServiceLocator

Namespace: InjectMe
Assembly: InjectMe (in InjectMe.dll) Version: 0.9.17.21 (0.9.17.21)
Syntax
public class ServiceLocator : IServiceLocator

The ServiceLocator type exposes the following members.

Constructors
  NameDescription
Public methodServiceLocator
Initializes a new instance of the ServiceLocator class using the specified container.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodResolve(Type, String)
Resolves a service of type serviceType with the specified serviceName.
Public methodResolveT(String)
Resolves a service of type T with the specified serviceName.
Public methodResolveAll(Type)
Resolves all services of type serviceType.
Public methodResolveAllT
Resolves all services of type T.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryResolve(Type, String)
Resolves a service of type serviceType with the specified serviceName.
Public methodTryResolveT(String)
Resolves a service of type T with the specified serviceName.
Public methodTryResolveAll(Type)
Resolves all services of type serviceType.
Public methodTryResolveAllT
Resolves all services of type T.
Top
See Also