Class AppServiceMetadata
Metadata for application services.
Inheritance
Inherited Members
Namespace: Kephas.Services.Composition
Assembly: Kephas.Core.dll
Syntax
public class AppServiceMetadata : ExportMetadataBase, IExpando, IDynamicMetaObjectProvider, IIndexable
Constructors
| Improve this Doc View SourceAppServiceMetadata(IDictionary<String, Object>)
Initializes a new instance of the AppServiceMetadata class.
Declaration
public AppServiceMetadata(IDictionary<string, object> metadata)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | metadata | The metadata. |
AppServiceMetadata(Int32, Int32, String)
Initializes a new instance of the AppServiceMetadata class.
Declaration
public AppServiceMetadata(int processingPriority = 0, int overridePriority = 0, string serviceName = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | processingPriority | Optional. The processing priority. |
System.Int32 | overridePriority | Optional. The override priority. |
System.String | serviceName | Optional. The name of the service. |
Properties
| Improve this Doc View SourceAppServiceImplementationType
Gets or sets the concrete service type implementing the service contract.
Declaration
public Type AppServiceImplementationType { get; set; }
Property Value
Type | Description |
---|---|
System.Type | The type of the service. |
Dependencies
Gets or sets the service dependencies.
Declaration
public IEnumerable<Type> Dependencies { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Type> | The service dependencies. |
OverridePriority
Gets the priority of the service in the override chain.
Declaration
public int OverridePriority { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The override priority. |
ProcessingPriority
Gets the order in which the services should be processed.
Declaration
public int ProcessingPriority { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The processing priority. |
ServiceName
Gets or sets the name of the service.
Declaration
public string ServiceName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the service. |
Methods
| Improve this Doc View SourceGetMetadataValue<TAttribute, TValue>(IDictionary<String, Object>, TValue)
Gets the metadata value for the specific attribute.
Declaration
protected TValue GetMetadataValue<TAttribute, TValue>(IDictionary<string, object> metadata, TValue defaultValue = null)
where TAttribute : IMetadataValue<TValue>
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | metadata | The metadata. |
TValue | defaultValue | The default value. |
Returns
Type | Description |
---|---|
TValue | The metadata value if found, otherwise the default value. |
Type Parameters
Name | Description |
---|---|
TAttribute | The attribute type. |
TValue | The value type. |
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. |