Skip to content

Commit 0ea569e

Browse files
committed
FIX: scrutor default params → Pl.Shared.Web
1 parent 5116198 commit 0ea569e

File tree

9 files changed

+18
-71
lines changed

9 files changed

+18
-71
lines changed

Src/Apps/Desktop/Pl.Desktop.Api/App/Shared/Labels/Generate/Services/CacheService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using Microsoft.Extensions.Localization;
44
using Pl.Database;
55
using Pl.Database.Entities.Zpl.Templates;
6-
using Pl.Desktop.Api.App.Shared.Labels.Generate.Utils;
6+
using Pl.Desktop.Api.App.Shared.Labels.Generate.Shared.Utils;
77
using Pl.Desktop.Api.App.Shared.Labels.Localization;
88
using Pl.Print.Features.Barcodes.Models;
99
using Pl.Print.Features.Templates.Models;

Src/Apps/Desktop/Pl.Desktop.Api/App/Shared/Labels/Generate/Utils/BitMapUtils.cs Src/Apps/Desktop/Pl.Desktop.Api/App/Shared/Labels/Generate/Shared/Utils/BitMapUtils.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Drawing.Imaging;
33
using Svg;
44

5-
namespace Pl.Desktop.Api.App.Shared.Labels.Generate.Utils;
5+
namespace Pl.Desktop.Api.App.Shared.Labels.Generate.Shared.Utils;
66

77
public static class BitMapUtils
88
{

Src/Apps/Desktop/Pl.Desktop.Client/Platforms/Windows/Package.appxmanifest

-53
This file was deleted.

Src/Apps/Desktop/Pl.Desktop.Client/Platforms/Windows/app.manifest

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
<assemblyIdentity version="1.0.0.0" name="Pl.Desktop.Client.WinUI.app"/>
44
<application xmlns="urn:schemas-microsoft-com:asm.v3">
55
<windowsSettings>
6-
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
7-
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
6+
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
7+
PerMonitorV2, PerMonitor
8+
</dpiAwareness>
89
</windowsSettings>
910
</application>
1011
</assembly>

Src/Apps/Web/Pl.Admin.Api/App/Features/References1C/Brands/BrandController.cs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Pl.Admin.Api.App.Features.References1C.Brands;
55

6-
76
[ApiController]
87
[Route(ApiEndpoints.Brands)]
98
public sealed class BrandController(IBrandService brandService)
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
namespace Pl.Admin.Api;
22

3-
internal interface IDeviceControlApiAssembly;
3+
internal interface IAdminApiAssembly;

Src/Apps/Web/Pl.Admin.Api/Program.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
builder.Services
1414
.BaseSetup()
1515
.AddUserClaims()
16-
.AddHelpers<IDeviceControlApiAssembly>()
17-
.AddValidators<IDeviceControlApiAssembly>()
18-
.AddApiServices<IDeviceControlApiAssembly>()
19-
.AddMiddlewares<IDeviceControlApiAssembly>()
16+
.AddHelpers<IAdminApiAssembly>()
17+
.AddValidators<IAdminApiAssembly>()
18+
.AddApiServices<IAdminApiAssembly>()
19+
.AddMiddlewares<IAdminApiAssembly>()
2020
.AddAuth(builder.Configuration);
2121

2222
WebApplication app = builder.Build();

Src/Directory.Build.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Deterministic>true</Deterministic>
88
<WarningLevel>9999</WarningLevel>
99
<Prefer32Bit>false</Prefer32Bit>
10-
<LangVersion>12</LangVersion>
10+
<LangVersion>13</LangVersion>
1111
<Nullable>enable</Nullable>
1212
<ImplicitUsings>enable</ImplicitUsings>
1313
</PropertyGroup>
@@ -66,7 +66,7 @@
6666
Include="$(MSBuildThisFileDirectory)\Libs\Pl.Shared\Pl.Shared.csproj"
6767
Condition="'$(MSBuildProjectName)' != 'Pl.Shared'"
6868
PrivateAssets="All"
69-
/>
69+
/>
7070
</ItemGroup>
7171

7272
<ItemGroup Label="BF">

Src/Libs/Pl.Shared.Web/Extensions/ServiceCollectionExtensions.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static IServiceCollection AddValidators<T>(this IServiceCollection servic
4040
{
4141
return services.Scan(scan => scan
4242
.FromAssembliesOf(typeof(T))
43-
.AddClasses(classes => classes.Where(type => type.Name.EndsWith("Validator")))
43+
.AddClasses(classes => classes.Where(type => type.Name.EndsWith("Validator")), false)
4444
.AsSelf()
4545
.WithScopedLifetime()
4646
);
@@ -50,7 +50,7 @@ public static IServiceCollection AddMiddlewares<T>(this IServiceCollection servi
5050
{
5151
return services.Scan(scan => scan
5252
.FromAssembliesOf(typeof(T))
53-
.AddClasses(i => i.Where(type => type.Name.EndsWith("Middleware")))
53+
.AddClasses(i => i.Where(type => type.Name.EndsWith("Middleware")), false)
5454
.AsSelf()
5555
.WithTransientLifetime()
5656
);
@@ -60,7 +60,7 @@ public static IServiceCollection AddApiServices<T>(this IServiceCollection servi
6060
{
6161
return services.Scan(scan => scan
6262
.FromAssembliesOf(typeof(T))
63-
.AddClasses(classes => classes.Where(type => type.Name.EndsWith("ApiService")))
63+
.AddClasses(classes => classes.Where(type => type.Name.EndsWith("ApiService")), false)
6464
.AsImplementedInterfaces()
6565
.WithScopedLifetime()
6666
);
@@ -70,7 +70,7 @@ public static IServiceCollection AddRefitEndpoints<T>(this IServiceCollection se
7070
{
7171
return services.Scan(scan => scan
7272
.FromAssembliesOf(typeof(T))
73-
.AddClasses(classes => classes.Where(type => type.Name.EndsWith("Endpoints")))
73+
.AddClasses(classes => classes.Where(type => type.Name.EndsWith("Endpoints")), false)
7474
.AsSelf()
7575
.WithScopedLifetime()
7676
);
@@ -80,7 +80,7 @@ public static IServiceCollection AddHelpers<T>(this IServiceCollection services)
8080
{
8181
return services.Scan(scan => scan
8282
.FromAssembliesOf(typeof(T))
83-
.AddClasses(classes => classes.Where(type => type.Name.EndsWith("Helper")))
83+
.AddClasses(classes => classes.Where(type => type.Name.EndsWith("Helper")), false)
8484
.AsSelf()
8585
.WithTransientLifetime()
8686
);
@@ -90,7 +90,7 @@ public static IServiceCollection AddDelegatingHandlers<T>(this IServiceCollectio
9090
{
9191
return services.Scan(scan => scan
9292
.FromAssembliesOf(typeof(T))
93-
.AddClasses(classes => classes.AssignableTo<DelegatingHandler>())
93+
.AddClasses(classes => classes.AssignableTo<DelegatingHandler>(), false)
9494
.AsSelf()
9595
.WithTransientLifetime()
9696
);

0 commit comments

Comments
 (0)