ServiceRegistration<T>
Namespace Mc.Scripting.Services · Kind class (sealed)
public sealed class ServiceRegistration<T> : IEquatable<ServiceRegistration<T>> where T : classOne registered service: the implementation, who provided it and how it ranks.
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
ServiceRegistration(T Instance, string Provider, ServicePriority Priority) |
One registered service: the implementation, who provided it and how it ranks. |
Constructor
Section titled “Constructor”public ServiceRegistration(T Instance, string Provider, ServicePriority Priority)One registered service: the implementation, who provided it and how it ranks.
Parameters
| Name | Type | Description |
|---|---|---|
Instance |
T |
The implementation. |
Provider |
string |
The id of the registering plugin. |
Priority |
ServicePriority |
Its rank. |
Properties
Section titled “Properties”| Member | Description |
|---|---|
T Instance { get; init; } |
The implementation. |
ServicePriority Priority { get; init; } |
Its rank. |
string Provider { get; init; } |
The id of the registering plugin. |
Instance
Section titled “Instance”public T Instance { get; init; }The implementation.
Priority
Section titled “Priority”public ServicePriority Priority { get; init; }Its rank.
Provider
Section titled “Provider”public string Provider { get; init; }The id of the registering plugin.