1+ using AstroPanda . Blazor . Toolkit . Services ;
2+
13using BlazorComponentBus ;
24using Microsoft . Extensions . DependencyInjection ;
35using Microsoft . Extensions . DependencyInjection . Extensions ;
@@ -22,6 +24,7 @@ public static IServiceCollection AddBlazorToolkit(this IServiceCollection servic
2224 services . TryAddSingleton < IDownloadService , DownloadService > ( ) ;
2325 services . TryAddSingleton < IClipboardService , ClipboardService > ( ) ;
2426 services . TryAddScoped < IContextMenuService , ContextMenuService > ( ) ;
27+ services . TryAddScoped < IDeviceService , DeviceService > ( ) ;
2528
2629 services . AddScoped < IComponentBus , ComponentBus > ( ) ;
2730 services . AddScoped ( sp => sp . GetRequiredService < IComponentBus > ( ) as ComponentBus ?? new ComponentBus ( ) ) ;
@@ -40,6 +43,7 @@ public static IServiceCollection AddBlazorServerToolkit(this IServiceCollection
4043 services . TryAddScoped < IDownloadService , DownloadService > ( ) ;
4144 services . TryAddScoped < IClipboardService , ClipboardService > ( ) ;
4245 services . TryAddScoped < IContextMenuService , ContextMenuService > ( ) ;
46+ services . TryAddScoped < IDeviceService , DeviceService > ( ) ;
4347
4448 services . AddScoped < IComponentBus , ComponentBus > ( ) ;
4549 services . AddScoped ( sp => sp . GetRequiredService < IComponentBus > ( ) as ComponentBus ?? new ComponentBus ( ) ) ;
0 commit comments