Show / Hide Table of Contents

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 Source

ClassId

Gets the identifier of the class that implements the dependency injection service.

Declaration
public ClassId ClassId { get; }
Property Value
Type Description
ClassId
| Improve this Doc View Source

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[]
| Improve this Doc View Source

Id

Gets the identifier of the dependency injection service.

Declaration
public ServiceId Id { get; }
Property Value
Type Description
ServiceId

Methods

| Improve this Doc View Source

CreateInstance<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.

  • Improve this Doc
  • View Source
Back to top Copyright © 2017-2019 Juha Lähteenmäki
Generated by DocFX