Click or drag to resize

ExtensionMethods Class

Extension methods for Microsoft.Extensions.DependencyInjection
Inheritance Hierarchy
SystemObject
  TomsToolbox.Composition.MicrosoftExtensionsExtensionMethods

Namespace: TomsToolbox.Composition.MicrosoftExtensions
Assembly: 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

The ExtensionMethods type exposes the following members.

Methods
 NameDescription
Public Extension MethodBindExports(IServiceCollection, IEnumerableAssembly) Binds the exports of the specified assemblies to the service collection.
Public Extension MethodBindExports(IServiceCollection, IEnumerableExportInfo) Binds the specified exports to the service collection.
Public Extension MethodBindExports(IServiceCollection, Assembly) Binds the exports of the specified assemblies to the service collection.
Public Extension MethodBindMetadata(IServiceCollection, Type) Binds the default metadata to the service.
Public Extension MethodBindMetadata(IServiceCollection, Type, IDictionaryString, Object) Binds the metadata to the service.
Public Extension MethodBindMetadata(IServiceCollection, Type, Type) Binds the default metadata to the service.
Public Extension MethodBindMetadata(IServiceCollection, Type, Type, IDictionaryString, Object) Binds the metadata to the service.
Public Extension MethodGetExportedValueT(IServiceProvider) Gets the exported value of the specified type.
Public Extension MethodGetExportedValueT(IServiceProvider, String) Gets the exported value of the specified type and contract name.
Public Extension MethodGetExportedValueOrDefaultT(IServiceProvider) Gets the exported value of the specified type, or default if not found.
Public Extension MethodGetExportedValueOrDefaultT(IServiceProvider, String) Gets the exported value of the specified type and contract name, or default if not found.
Public Extension MethodGetExportedValuesT(IServiceProvider) Gets the exported values of the specified type.
Public Extension MethodGetExportedValuesT(IServiceProvider, String) Gets the exported values of the specified type and contract name.
Public Extension MethodGetServiceInfo(IServiceCollection) Gets the service descriptor and the associated metadata of all metadata entries.
Public Extension MethodGetServiceInfoT(IServiceCollection) Gets the service descriptor and the associated metadata of the metadata entries matching the type.
Top
See Also