Pub/sub on string channels with Action<object>.
Build a minimal event bus:
```csharp
class EventBus
{
private readonly Dictionary<string, Action<object>> handlers = new();
public void Subscribe(string topic, Action<object> handler)
{
handlers[topic] = handlers.TryGetValue(topic, out var existing)
? existing + handler : handler;
}
public void Publish(string topic, object payload)
{
if (handlers.TryGetValue(topic, out var h)) h(payload);
}
}
```Sign in to save your code and track progress across devices.