Table of Contents

Interface IPluginChannelControl

Namespace
Oscova.Agents.Channels
Assembly
Oscova.Agents.dll

Binds lifecycle operations to the owning plugin, channel and authenticated user.

public interface IPluginChannelControl

Methods

ApplyAsync(CancellationToken)

Applies independently saved configuration to an already running connection.

GetAgentsAsync(CancellationToken)

Returns available agent choices for this user.

GetStatusAsync(CancellationToken)

Returns observed state without reading saved plugin configuration.

SaveAsync(string?, Func<bool, CancellationToken, Task>, CancellationToken)

Serializes admission, agent validation, plugin persistence and application under the channel gate.

StartAsync(CancellationToken)

Starts from a fresh validated plugin snapshot.

StopAsync(CancellationToken)

Stops the connection without loading plugin configuration.

SubscribeAsync(Action<PluginChannelStatus>, CancellationToken)

Observes complete status synchronously, callbacks must return immediately without reentering channel operations.

ValidateAgentAsync(string?, CancellationToken)

Rejects unavailable explicit agent choices.