Table of Contents

Class ResolvePluginProcess

Namespace
DuetAPI.Commands
Assembly
DuetAPI.dll

Command asking the plugin service which plugin owns a given process ID. Used by DCS to close the TOCTOU window between process start and the object model being updated with the new PID. Reserved for internal purposes, do not use

[RequiredPermissions(SbcPermissions.ServicePlugins)]
public class ResolvePluginProcess : Command<string?>
Inheritance
ResolvePluginProcess
Inherited Members

Constructors

ResolvePluginProcess()

public ResolvePluginProcess()

Properties

Pid

Process ID to look up. The plugin service resolves this by walking the process tree and matching ancestors against its own tracked plugin PIDs

public int Pid { get; set; }

Property Value

int

Methods

UpdateFromJson(JsonElement)

Update this instance from a given JSON element

public override void UpdateFromJson(JsonElement jsonElement)

Parameters

jsonElement JsonElement

Element to update this intance from

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data

UpdateFromJsonReader(ref Utf8JsonReader)

Update this instance from a given JSON element

public override void UpdateFromJsonReader(ref Utf8JsonReader reader)

Parameters

reader Utf8JsonReader

Reader to update this intance from

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data