Initial commit

This commit is contained in:
2026-07-13 09:25:40 +07:00
parent c08ff54676
commit bccfb156d7
1938 changed files with 641646 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using RobotNet.VDA5050.InstantAction;
using RobotNet.VDA5050.Order;
using RobotNet10.RobotApp.Events;
using RobotNet10.RobotApp.Events.Events;
namespace RobotNet10.FleetManager.Events;
/// <summary>
/// In-memory event bus implementation for VDA5050 robot messages
/// </summary>
public class RobotEventBus : IRobotEventBus
{
public event EventHandler<OrderChangedEvent>? OrderMessageReceived;
public event EventHandler<InstantActionChangedEvent>? InstantActionReceived;
public void PublishInstantActionMessageReceived(InstantActionsMsg instantActionMsg)
{
InstantActionReceived?.Invoke(this, new InstantActionChangedEvent {InstantActionMessage = instantActionMsg });
}
public void PublishOrderMessageReceived(OrderMsg orderMsg)
{
OrderMessageReceived?.Invoke(this, new OrderChangedEvent {OrderMessage = orderMsg });
}
}