Skip to content

Commit

Permalink
chore(deps): Upgrade Scrutor to 6.0.1 (#887)
Browse files Browse the repository at this point in the history
* chore(deps): Upgrade Scrutor to 6.0.1

* chore: fix breaking change
  • Loading branch information
IvanJosipovic authored Jan 28, 2025
1 parent 67fdc1f commit b49b7b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/KubeUI/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ public override void Initialize()
}

builder.Services.Scan(scan => scan
.FromCallingAssembly()
.FromAssemblyOf<App>()
.AddClasses(classes => classes.AssignableToAny([typeof(UserControl), typeof(ObservableObject), typeof(ViewModelBase), typeof(MyViewBase<>)]))
.AsSelf()
.WithTransientLifetime()
);

builder.Services.Scan(x => x.FromCallingAssembly().AddClasses().UsingAttributes());
builder.Services.Scan(x => x.FromAssemblyOf<App>().AddClasses().UsingAttributes());

// Services
builder.Services.AddSingleton<IGenerator, Generator>();
Expand Down
2 changes: 1 addition & 1 deletion src/KubeUI/KubeUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Scrutor" Version="5.1.1" />
<PackageReference Include="Scrutor" Version="6.0.1" />
<PackageReference Include="Swordfish.NET.CollectionsV3" Version="3.3.15" />
<PackageReference Include="TextMateSharp" Version="1.0.65" />
<PackageReference Include="TextMateSharp.Grammars" Version="1.0.65" />
Expand Down

0 comments on commit b49b7b6

Please sign in to comment.