Table of Contents

Class NoSelfConnectionValidator

Namespace
FlowGraph.Avalonia.Validation
Assembly
FlowGraph.Avalonia.dll

Connection validator that prevents self-connections (node connecting to itself).

public class NoSelfConnectionValidator : IConnectionValidator
Inheritance
NoSelfConnectionValidator
Implements
Inherited Members

Methods

Validate(ConnectionContext)

Validates whether a connection can be made between two ports.

public ConnectionValidationResult Validate(ConnectionContext context)

Parameters

context ConnectionContext

The connection context containing source and target information.

Returns

ConnectionValidationResult

A validation result indicating whether the connection is allowed.