Skip to content

Commit

Permalink
refactor: remove events module
Browse files Browse the repository at this point in the history
  • Loading branch information
djoufson committed Jan 2, 2025
1 parent c391142 commit 55f69f1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions app/Components/Components/NavBar.razor
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<li class="flex">
<NavLink href="/" data-enhance-nav="false" Match="NavLinkMatch.All" class="py-2 md:text-slate-300 md:hover:text-white transition-all">Home</NavLink>
</li>
<li class="flex">
@* <li class="flex">
<NavLink href="/events" data-enhance-nav="false" class="py-2 md:text-slate-300 md:hover:text-white transition-all">Events</NavLink>
</li>
</li> *@
<li class="flex">
<NavLink href="/dotnet-conf-2024" data-enhance-nav="false" class="py-2 md:text-slate-300 md:hover:text-white transition-all">.NET Conf 2024</NavLink>
</li>
Expand Down
2 changes: 1 addition & 1 deletion app/Components/Pages/Events.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/events"
@* @page "/events" *@
@using app.business.Services
@using app.domain.Models.EventAggregate
@inject IEventService EventService
Expand Down
15 changes: 8 additions & 7 deletions app/Extensions/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,19 @@ public static IServiceCollection AddServices(
services.AddApplicationInsightsTelemetry(configuration);
services.AddExceptionHandler<ExceptionHandlerMiddleware>();
}
services.AddHangfire(cfg => cfg
.UseSimpleAssemblyNameTypeSerializer()
.UseRecommendedSerializerSettings()
.UseMemoryStorage());

// services.AddHangfire(cfg => cfg
// .UseSimpleAssemblyNameTypeSerializer()
// .UseRecommendedSerializerSettings()
// .UseMemoryStorage());

// services.AddHangfireServer();
// services.AddJobsFromAssembly(typeof(IJob).Assembly);

// We currently use the memory cache because it's enough for our simple application
// We will scale to a distributed Redis Cache if needed
services.AddCacheManager();
services.AddSingleton<CacheManager>();

services.AddHangfireServer();
services.AddJobsFromAssembly(typeof(IJob).Assembly);
services.AddScoped<IUnitOfWork, UnitOfWork>();
services.AddScoped<IFileDownloader, FileDownloader>();
services.AddScoped<IFileUploader, FileUploader>();
Expand Down
2 changes: 1 addition & 1 deletion app/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

app.UseAntiforgery();

app.MapHangfireJobs();
// app.MapHangfireJobs();

app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode()
Expand Down

0 comments on commit 55f69f1

Please sign in to comment.