Skip to content

ServiceRegistration<T>

Namespace Mc.Scripting.Services · Kind class (sealed)

public sealed class ServiceRegistration<T> : IEquatable<ServiceRegistration<T>> where T : class

One registered service: the implementation, who provided it and how it ranks.

Member Description
ServiceRegistration(T Instance, string Provider, ServicePriority Priority) One registered service: the implementation, who provided it and how it ranks.
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.
Member Description
T Instance { get; init; } The implementation.
ServicePriority Priority { get; init; } Its rank.
string Provider { get; init; } The id of the registering plugin.
public T Instance { get; init; }

The implementation.

public ServicePriority Priority { get; init; }

Its rank.

public string Provider { get; init; }

The id of the registering plugin.

ServicePriority