Class DependencyScopeExtensions
Useful extension methods for IDependencyScope.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: IRM
Assembly: IRM.dll
Syntax
public static class DependencyScopeExtensions
Methods
GetService<T>(IDependencyScope)
Retrieves a service from the scope.
Declaration
public static T GetService<T>(this IDependencyScope dependencyScope)
Parameters
IDependencyScope
dependencyScope
|
Returns
T
The retrieved service. |
Type Parameters
T
The type of service to be retrieved. |
GetServices<T>(IDependencyScope)
Retrieves a collection of services from the scope.
Declaration
public static IEnumerable<T> GetServices<T>(this IDependencyScope dependencyScope)
Parameters
IDependencyScope
dependencyScope
|
Returns
IEnumerable<T>
The retrieved collection of services. |
Type Parameters
T
The type of services to be retrieved. |