Class CustomOperation
- Namespace
- NMF.Glsp.Protocol.BaseProtocol
- Assembly
- NMF.Glsp.dll
Denotes a class for custom operations
public class CustomOperation : Operation
- Inheritance
-
CustomOperation
- Inherited Members
Constructors
CustomOperation(string)
Creates a new custom operation with the given kind
public CustomOperation(string kind)
Parameters
kind
string
Properties
Args
Custom arguments.
public IDictionary<string, object> Args { get; init; }
Property Value
ElementId
Gets or sets the element for which this operation was created
public string ElementId { get; set; }
Property Value
Kind
Unique identifier specifying the kind of action to process.
public override string Kind { get; }
Property Value
Methods
ExecuteAsync(IGlspSession)
Executes the action in the context of the given session
public override Task ExecuteAsync(IGlspSession session)
Parameters
session
IGlspSessionThe session in which to execute the action