Skip to content

Commit a674d8d

Browse files
Blazor-State injection
1 parent 81e960e commit a674d8d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1-
using Microsoft.Extensions.DependencyInjection;
1+
using BlazorState;
2+
using Microsoft.Extensions.DependencyInjection;
3+
using System.Reflection;
24

35
namespace Blazor.AdminLte
46
{
57
public static class ServiceCollectionExtensions
68
{
79
public static IServiceCollection AddAdminLte(this IServiceCollection services)
810
{
9-
return services.AddScoped<NavBarLeftInjectableMenu>();
11+
return services.AddScoped<NavBarLeftInjectableMenu>().AddBlazorState((aOptions) =>
12+
aOptions.Assemblies = new Assembly[]
13+
{
14+
typeof(BaseClasses).GetTypeInfo().Assembly,
15+
Assembly.GetExecutingAssembly()
16+
}
17+
);
1018
}
1119
}
1220
}

0 commit comments

Comments
 (0)