From 8c765e4d49bef8a947e1444399ba2bddc9ef05f6 Mon Sep 17 00:00:00 2001 From: Claudio Schaad Date: Fri, 10 Apr 2026 22:41:01 +0200 Subject: [PATCH] refactor: temporarily rename old IGoogleCalendarService to IOldGoogleCalendarService to avoid naming conflict with new marker interface This temporary change is necessary because the new ICalendarService interfaces (IGoogleCalendarService, INextcloudCalendarService) now exist as marker interfaces. The old interface will be fully removed in Task 4 when GoogleCalendarService is refactored to implement the new ICalendarService contract. --- Server/Program.cs | 2 +- Services/GoogleCalendarService.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Server/Program.cs b/Server/Program.cs index 6293348..8dfd977 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -29,7 +29,7 @@ builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddHttpContextAccessor(); -builder.Services.AddScoped(); +builder.Services.AddScoped(); // Configure authentication builder.Services.AddAuthentication(options => diff --git a/Services/GoogleCalendarService.cs b/Services/GoogleCalendarService.cs index 4fc9312..1a5d90d 100644 --- a/Services/GoogleCalendarService.cs +++ b/Services/GoogleCalendarService.cs @@ -8,14 +8,14 @@ using ShiftScheduler.Shared; namespace ShiftScheduler.Services; -public interface IGoogleCalendarService +public interface IOldGoogleCalendarService { Task> GetCalendarsAsync(); Task SyncShiftsToCalendarAsync(string calendarId, List shifts); } public class GoogleCalendarService(IHttpContextAccessor httpContextAccessor, IConfigurationService configurationService) - : IGoogleCalendarService + : IOldGoogleCalendarService { public async Task> GetCalendarsAsync() {