Class ServiceRef<TService>
A service reference.
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: Kephas.Data
Assembly: Kephas.Data.dll
Syntax
public class ServiceRef<TService> : RefBase, IServiceRef<TService>, IServiceRef
Type Parameters
Name | Description |
---|---|
TService | Type of the referenced service. |
Constructors
| Improve this Doc View SourceServiceRef(Object, String)
Initializes a new instance of the ServiceRef<TService> class.
Declaration
public ServiceRef(object containerEntity, string refFieldName)
Parameters
Type | Name | Description |
---|---|---|
System.Object | containerEntity | The entity containing the reference. |
System.String | refFieldName | Name of the reference service property. |
Properties
| Improve this Doc View SourceServiceName
Gets or sets the name of the referenced service.
Declaration
public virtual string ServiceName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the referenced service. |
ServiceType
Gets the type of the referenced service.
Declaration
public Type ServiceType { get; }
Property Value
Type | Description |
---|---|
System.Type | The type of the referenced service. |
Methods
| Improve this Doc View SourceGetNamedServiceProvider()
Gets the named service provider.
Declaration
protected virtual INamedServiceProvider GetNamedServiceProvider()
Returns
Type | Description |
---|---|
INamedServiceProvider | The named service provider. |
GetService()
Gets the referenced service.
Declaration
public virtual TService GetService()
Returns
Type | Description |
---|---|
TService | The referenced service. |
Explicit Interface Implementations
| Improve this Doc View SourceIServiceRef.GetService()
Gets the referenced service.
Declaration
object IServiceRef.GetService()
Returns
Type | Description |
---|---|
System.Object | The referenced service. |