Table of Contents

Class ServiceOperation

Namespace
SharpConsoleUI.Plugins
Assembly
SharpConsoleUI.dll

Metadata describing a service operation, including its parameters, return type, and documentation. This enables runtime discovery and validation of service operations.

public record ServiceOperation : IEquatable<ServiceOperation>
Inheritance
ServiceOperation
Implements
Inherited Members

Constructors

ServiceOperation(string, string, IReadOnlyList<ServiceParameter>, Type?)

Metadata describing a service operation, including its parameters, return type, and documentation. This enables runtime discovery and validation of service operations.

public ServiceOperation(string Name, string Description, IReadOnlyList<ServiceParameter> Parameters, Type? ReturnType = null)

Parameters

Name string

The operation name (used in Execute calls)

Description string

Human-readable description of what the operation does

Parameters IReadOnlyList<ServiceParameter>

List of parameters the operation accepts

ReturnType Type

The type returned by the operation, or null for void operations

Properties

Description

Human-readable description of what the operation does

public string Description { get; init; }

Property Value

string

Name

The operation name (used in Execute calls)

public string Name { get; init; }

Property Value

string

Parameters

List of parameters the operation accepts

public IReadOnlyList<ServiceParameter> Parameters { get; init; }

Property Value

IReadOnlyList<ServiceParameter>

ReturnType

The type returned by the operation, or null for void operations

public Type? ReturnType { get; init; }

Property Value

Type