Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat(infra): added static class for configuring services for infra layer

Lars1bafbbfa4e47
diff --git a/LarsWM.Infrastructure/DependencyInjection.cs b/LarsWM.Infrastructure/DependencyInjection.cs
new file mode 100644
index 00000000..9e414407
--- /dev/null
+++ b/LarsWM.Infrastructure/DependencyInjection.cs
@@ -0,0 +1,18 @@
+using LarsWM.Infrastructure.Bussing;
+using Microsoft.Extensions.DependencyInjection;
+
+namespace LarsWM.Infrastructure
+{
+ public static class DependencyInjection
+ {
+ public static IServiceCollection AddInfrastructureServices(this IServiceCollection services)
+ {
+ services.AddSingleton<IBus, Bus>();
+
+ // TODO: Change WindowsApiFacade & WindowsApiService to be compatible with DI.
+ // TODO: Add service locator to infrastructure layer.
+
+ return services;
+ }
+ }
+}