| ExtensionMethods Class |
Extension methods for Microsoft.Extensions.DependencyInjection
Inheritance Hierarchy SystemObject TomsToolbox.Composition.MicrosoftExtensionsExtensionMethods Namespace: TomsToolbox.Composition.MicrosoftExtensionsAssembly: TomsToolbox.Composition.MicrosoftExtensions (in TomsToolbox.Composition.MicrosoftExtensions.dll) Version: 2.20.0+81722655bc5ac69e82709ab0d5f512a9f7e83ea5
XMLNS for XAML: Not mapped to an xmlns.
Syntax public static class ExtensionMethods
<ExtensionAttribute>
Public NotInheritable Class ExtensionMethods
The ExtensionMethods type exposes the following members.
Methods | Name | Description |
---|
| BindExports(IServiceCollection, IEnumerableAssembly) |
Binds the exports of the specified assemblies to the service collection.
|
| BindExports(IServiceCollection, IEnumerableExportInfo) |
Binds the specified exports to the service collection.
|
| BindExports(IServiceCollection, Assembly) |
Binds the exports of the specified assemblies to the service collection.
|
| BindMetadata(IServiceCollection, Type) |
Binds the default metadata to the service.
|
| BindMetadata(IServiceCollection, Type, IDictionaryString, Object) |
Binds the metadata to the service.
|
| BindMetadata(IServiceCollection, Type, Type) |
Binds the default metadata to the service.
|
| BindMetadata(IServiceCollection, Type, Type, IDictionaryString, Object) |
Binds the metadata to the service.
|
| GetExportedValueT(IServiceProvider) |
Gets the exported value of the specified type.
|
| GetExportedValueT(IServiceProvider, String) |
Gets the exported value of the specified type and contract name.
|
| GetExportedValueOrDefaultT(IServiceProvider) |
Gets the exported value of the specified type, or default if not found.
|
| GetExportedValueOrDefaultT(IServiceProvider, String) |
Gets the exported value of the specified type and contract name, or default if not found.
|
| GetExportedValuesT(IServiceProvider) |
Gets the exported values of the specified type.
|
| GetExportedValuesT(IServiceProvider, String) |
Gets the exported values of the specified type and contract name.
|
| GetServiceInfo(IServiceCollection) |
Gets the service descriptor and the associated metadata of all metadata entries.
|
| GetServiceInfoT(IServiceCollection) |
Gets the service descriptor and the associated metadata of the metadata entries matching the type.
|
TopSee Also