Interface IAppServiceInfo
Contract interface providing information about an application service.
Namespace: Kephas.Services.Reflection
Assembly: Kephas.Core.dll
Syntax
public interface IAppServiceInfo
Properties
| Improve this Doc View SourceAllowMultiple
Gets a value indicating whether multiple services for this contract are allowed.
Declaration
bool AllowMultiple { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
AsOpenGeneric
Gets a value indicating whether the contract should be exported as an open generic.
Declaration
bool AsOpenGeneric { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ContractType
Gets the contract type of the export.
Declaration
Type ContractType { get; }
Property Value
Type | Description |
---|---|
System.Type | The contract type of the export. |
Instance
Gets the service instance.
Declaration
object Instance { get; }
Property Value
Type | Description |
---|---|
System.Object | The service instance. |
InstanceFactory
Gets the service instance factory.
Declaration
Func<ICompositionContext, object> InstanceFactory { get; }
Property Value
Type | Description |
---|---|
System.Func<ICompositionContext, System.Object> | The service instance factory. |
InstanceType
Gets the type of the service instance.
Declaration
Type InstanceType { get; }
Property Value
Type | Description |
---|---|
System.Type | The type of the service instance. |
Lifetime
Gets the application service lifetime.
Declaration
AppServiceLifetime Lifetime { get; }
Property Value
Type | Description |
---|---|
AppServiceLifetime | The application service lifetime. |
MetadataAttributes
Gets the supported metadata attributes.
Declaration
Type[] MetadataAttributes { get; }
Property Value
Type | Description |
---|---|
System.Type[] | The metadata attributes. |
Remarks
The metadata attributes are used to register the conventions for application services.