Class Service
Defines a class that encapsulates the metadata of a dependency injection service.
Inheritance
System.Object
Service
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)
System.Object.ToString()
Namespace: Juhta.Net.Services
Assembly: Juhta.Net.Services.dll
Syntax
public class Service
Properties
| Improve this Doc View SourceClassId
Gets the identifier of the class that implements the dependency injection service.
Declaration
public ClassId ClassId { get; }
Property Value
Type | Description |
---|---|
ClassId |
ConstructorParams
Gets an array of ConstructorParam objects specifying the constructor parameters for the dependency injection service. Can be null.
Declaration
public ConstructorParam[] ConstructorParams { get; }
Property Value
Type | Description |
---|---|
ConstructorParam[] |
Id
Gets the identifier of the dependency injection service.
Declaration
public ServiceId Id { get; }
Property Value
Type | Description |
---|---|
ServiceId |
Methods
| Improve this Doc View SourceCreateInstance<TService>()
Creates an instance of the encapsulated dependency injection service.
Declaration
public TService CreateInstance<TService>()where TService : class
Returns
Type | Description |
---|---|
TService | Returns the created instance casted to the specified service type. |
Type Parameters
Name | Description |
---|---|
TService | Specifies a service type. |