-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Damian edited this page Jan 24, 2026
·
2 revisions
Welcome to the Lite.EventIpc wiki!
using Lite.EventIpc;
public class UserCreatedEvent
{
public string UserName { get; set; }
}
static void Main()
{
var eventAggregator = new EventAggregator();
// Subscribe
eventAggregator.Subscribe<UserCreatedEvent>(e =>
Console.WriteLine($"User created: {e.Username}"));
// Publish
eventAggregator.Publish(new UserCreatedEvent { Username = "SupaDupa" })
}