Show / Hide Table of Contents

Class DependencyScopeExtensions

Useful extension methods for IDependencyScope.

Inheritance
Object
DependencyScopeExtensions
Inherited Members
System.Object.ToString()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
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.

Back to top Generated by DocFX