mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-07 06:09:40 +00:00
Add the drop zone arbiter, still without consumers
This commit is contained in:
6 files changed
+245
-2
No files matched your search
@@ -0,0 +1,14 @@
|
||||
namespace AIStudio.Tools;
|
||||
|
||||
/// <summary>
|
||||
/// Hands the dropped paths to the drop zone which was under the cursor.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The zone is named rather than addressed, because the message bus broadcasts. Only the zone whose
|
||||
/// own ID matches acts on this, and every other zone ignores it -- including the zones of circuits
|
||||
/// whose browser is long gone, because an ID belongs to one instance in one circuit. What the paths
|
||||
/// mean is the receiving zone's business: they may lead to files just as well as to folders.
|
||||
/// </remarks>
|
||||
/// <param name="ZoneId">The ID of the zone the paths were dropped on.</param>
|
||||
/// <param name="Paths">The dropped paths, in the order the runtime delivered them.</param>
|
||||
public readonly record struct DroppedPaths(string ZoneId, List<string> Paths);
|
||||
Reference in new issue
Block a user