Skip to content

Commit

Permalink
Fix Scrutor breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nice3point committed Feb 11, 2025
1 parent 0cc3e52 commit a5394cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<!-- Revit 2025 fixed references -->
<ItemGroup Condition="$(DefineConstants.Contains('NET8_0'))">
<PackageVersion Update="Microsoft.Extensions.Hosting" Version="[8.0.1]"/>
<PackageVersion Update="Serilog.Extensions.Hosting" Version="[8.0.1]"/>
<PackageVersion Update="Serilog.Extensions.Hosting" Version="[8.0.0]"/>
<PackageVersion Update="Microsoft.Extensions.Logging" Version="[8.0.1]"/>
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public static class ViewModelServices
{
public static void RegisterViewModels(this IServiceCollection services)
{
services.Scan(selector => selector.FromCallingAssembly()
services.Scan(selector => selector.FromAssemblyOf<App>()
.AddClasses(filter => filter.InNamespaces("RevitLookup.UI.Playground.Client.ViewModels"))
.AsSelf()
.WithScopedLifetime()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static void RegisterViews(this IServiceCollection services)
filter.Where(type => !type.IsAssignableTo(typeof(INavigableView<object>)));
}).AsSelf().WithTransientLifetime());

services.Scan(selector => selector.FromCallingAssembly()
services.Scan(selector => selector.FromAssemblyOf<App>()
.AddClasses(filter => filter.AssignableTo<FluentWindow>()).AsSelf().WithScopedLifetime()
.AddClasses(filter => filter.AssignableTo<Page>()).AsSelf().WithScopedLifetime());
}
Expand Down

0 comments on commit a5394cd

Please sign in to comment.