Table of Contents

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

ServiceType Type

The service type (usually an interface)

Instance object

The service instance

Properties

Instance

The service instance

public object Instance { get; init; }

Property Value

object

ServiceType

The service type (usually an interface)

public Type ServiceType { get; init; }

Property Value

Type