Files
Hyperbar/Hyperbar.Windows/Lifecycles/ConfigurationChangedHandler.cs
T
2024-01-13 13:47:26 +00:00

15 lines
483 B
C#

using Hyperbar.Windows.Controls;
namespace Hyperbar.Windows.Primary;
public class AppConfigurationChangedHandler(DesktopFlyout desktopFlyout,
AppConfiguration configuration) :
INotificationHandler<ConfigurationChanged<AppConfiguration>>
{
public ValueTask Handle(ConfigurationChanged<AppConfiguration> notification, CancellationToken cancellationToken)
{
desktopFlyout.Placement = configuration.Placement;
return ValueTask.CompletedTask;
}
}