Class PluginService
- Namespace
- SharpConsoleUI.Plugins
- Assembly
- SharpConsoleUI.dll
A service contribution from a plugin (legacy type-based pattern). This pattern is obsolete. Use IPluginService instead for reflection-free service invocation.
[Obsolete("Use IPluginService interface instead. This type-based pattern will be removed in a future version.")]
public record PluginService : IEquatable<PluginService>
- Inheritance
-
PluginService
- Implements
- Inherited Members
Constructors
PluginService(Type, object)
A service contribution from a plugin (legacy type-based pattern). This pattern is obsolete. Use IPluginService instead for reflection-free service invocation.
public PluginService(Type ServiceType, object Instance)
Parameters
Properties
Instance
The service instance
public object Instance { get; init; }
Property Value
ServiceType
The service type (usually an interface)
public Type ServiceType { get; init; }