Implementing event-driven communication using MediatR and MS.DI libraries in the Avalonia project
AvaloniaUI is a powerful cross-platform. NET client development framework that allows developers to build applications for multiple platforms such as Windows, Linux, macOS, Android and iOS. When building complex applications, modularity and communication between components become particularly important. The Prism framework provides a modular development method and supports hot plugging of plug-ins, while MediatR is an event subscription publishing framework that implements the Mediator pattern, which is very suitable for communication between modules and between modules and main programs.