Added Handler registrations in IServiceCollectionExtensions
This commit is contained in:
@@ -14,6 +14,7 @@ namespace Hyperbar.Windows
|
||||
IHost? host = new HostBuilder()
|
||||
.ConfigureServices(isolatedServices =>
|
||||
{
|
||||
|
||||
isolatedServices.AddSingleton<IServiceFactory>(provider =>
|
||||
new ServiceFactory((type, parameters) => ActivatorUtilities.CreateInstance(provider, type, parameters!)));
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace Hyperbar.Windows;
|
||||
|
||||
public class KeyAcceleratorCommandHandler :
|
||||
ICommandHandler<KeyAcceleratorCommand>
|
||||
{
|
||||
public ValueTask<Unit> Handle(KeyAcceleratorCommand command,
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user