Files
Hyperbar/Hyperbar.Windows/Lifecycles/ConfigurationChangedHandler.cs
T

15 lines
470 B
C#

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