Class ExportFactoryWithMetadataRegistrationSource
An export factory with metadata registration source.
Inheritance
System.Object
ExportFactoryWithMetadataRegistrationSource
Implements
Autofac.Core.IRegistrationSource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Kephas.Composition.Autofac.Metadata
Assembly: Kephas.Composition.Autofac.dll
Syntax
public class ExportFactoryWithMetadataRegistrationSource : IRegistrationSource
Properties
| Improve this Doc View SourceIsAdapterForIndividualComponents
Gets a value indicating whether the registrations provided by this source are 1:1 adapters on top of other components (e.g., Meta, Func, or Owned).
Declaration
public bool IsAdapterForIndividualComponents { get; }
Property Value
Type | Description |
---|---|
System.Boolean | True if this object is adapter for individual components, false if not. |
Methods
| Improve this Doc View SourceRegistrationsFor(Service, Func<Service, IEnumerable<IComponentRegistration>>)
Retrieve registrations for an unregistered service, to be used by the container.
Declaration
public IEnumerable<IComponentRegistration> RegistrationsFor(Service service, Func<Service, IEnumerable<IComponentRegistration>> registrationAccessor)
Parameters
Type | Name | Description |
---|---|---|
Autofac.Core.Service | service | The service that was requested. |
System.Func<Autofac.Core.Service, System.Collections.Generic.IEnumerable<Autofac.Core.IComponentRegistration>> | registrationAccessor | A function that will return existing registrations for a service. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Autofac.Core.IComponentRegistration> | Registrations providing the service. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
System.Object.ToString()
Implements
Autofac.Core.IRegistrationSource