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
NamestringThe operation name (used in Execute calls)
DescriptionstringHuman-readable description of what the operation does
ParametersIReadOnlyList<ServiceParameter>List of parameters the operation accepts
ReturnTypeTypeThe 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
Name
The operation name (used in Execute calls)
public string Name { get; init; }
Property Value
Parameters
List of parameters the operation accepts
public IReadOnlyList<ServiceParameter> Parameters { get; init; }
Property Value
ReturnType
The type returned by the operation, or null for void operations
public Type? ReturnType { get; init; }