Skip to content

Commit

Permalink
refactor: poc webassembly setup
Browse files Browse the repository at this point in the history
  • Loading branch information
djoufson committed Dec 29, 2024
1 parent 2aca068 commit 4f67ff7
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
5 changes: 0 additions & 5 deletions app.business/app.business.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Hangfire" Version="1.8.15" />
<PackageReference Include="Hangfire.Storage.SQLite" Version="0.4.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\app.domain\app.domain.csproj" />
</ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions app.client/app.client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\app.business\app.business.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion app/Extensions/Extensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using app.business.Jobs.Base;
using app.business.Persistence;
using app.business.Services;
using app.domain.Models.Identity;
Expand All @@ -7,6 +6,7 @@
using app.infrastructure.Persistence.Interceptors;
using app.infrastructure.Persistence.Repositories.Base;
using app.infrastructure.Services;
using app.Jobs.Base;
using app.Middlewares;
using app.shared.Utilities;
using EntityFrameworkCore.Seeder.Extensions;
Expand Down
4 changes: 2 additions & 2 deletions app/Extensions/HangfireExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Reflection;
using app.business.Jobs.Base;
using app.Filters;
using app.Jobs.Base;
using Hangfire;

namespace app.Extensions;
Expand All @@ -12,7 +12,7 @@ public static WebApplication MapHangfireJobs(this WebApplication app)
app.UseHangfireDashboard("/admin/jobs", new DashboardOptions
{
IsReadOnlyFunc = context => false,
Authorization = [ new HangfireAuthFilter() ]
Authorization = [new HangfireAuthFilter()]
});

using var scope = app.Services.CreateScope();
Expand Down
2 changes: 1 addition & 1 deletion app.business/Jobs/Base/IJob.cs → app/Jobs/Base/IJob.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace app.business.Jobs.Base;
namespace app.Jobs.Base;

public interface IJob
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Linq.Expressions;

namespace app.business.Jobs.Base;
namespace app.Jobs.Base;
public class JobDefinition
{
public Expression<Action> MethodCall { get; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using app.business.Jobs.Base;
using app.business.Services;
using app.Jobs.Base;
using Hangfire;

namespace app.business.Jobs;
namespace app.Jobs;
public class MarkEventsAsPassed(IEventService eventService) : IJob
{
private const string JobName = nameof(MarkEventsAsPassed);
Expand Down
3 changes: 2 additions & 1 deletion app/app.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.0" />
<PackageReference Include="Hangfire" Version="1.8.15" />
<PackageReference Include="Hangfire.Storage.SQLite" Version="0.4.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\dotnet-ef-seeder\dotnet-ef-seeder.csproj" />
<ProjectReference Include="..\app.business\app.business.csproj" />
<ProjectReference Include="..\app.infrastructure\app.infrastructure.csproj" />
<ProjectReference Include="..\app.client\app.client.csproj" />
</ItemGroup>
Expand Down

0 comments on commit 4f67ff7

Please sign in to comment.