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.
This commit is contained in:
parent
bf77dff5ef
commit
8c765e4d49
2 changed files with 3 additions and 3 deletions
|
|
@ -29,7 +29,7 @@ builder.Services.AddSingleton<PdfExportService>();
|
||||||
builder.Services.AddSingleton<ITransportApiService, TransportApiService>();
|
builder.Services.AddSingleton<ITransportApiService, TransportApiService>();
|
||||||
builder.Services.AddSingleton<ITransportService, TransportService>();
|
builder.Services.AddSingleton<ITransportService, TransportService>();
|
||||||
builder.Services.AddHttpContextAccessor();
|
builder.Services.AddHttpContextAccessor();
|
||||||
builder.Services.AddScoped<IGoogleCalendarService, GoogleCalendarService>();
|
builder.Services.AddScoped<IOldGoogleCalendarService, GoogleCalendarService>();
|
||||||
|
|
||||||
// Configure authentication
|
// Configure authentication
|
||||||
builder.Services.AddAuthentication(options =>
|
builder.Services.AddAuthentication(options =>
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,14 @@ using ShiftScheduler.Shared;
|
||||||
|
|
||||||
namespace ShiftScheduler.Services;
|
namespace ShiftScheduler.Services;
|
||||||
|
|
||||||
public interface IGoogleCalendarService
|
public interface IOldGoogleCalendarService
|
||||||
{
|
{
|
||||||
Task<List<CalendarListEntry>> GetCalendarsAsync();
|
Task<List<CalendarListEntry>> GetCalendarsAsync();
|
||||||
Task SyncShiftsToCalendarAsync(string calendarId, List<ShiftWithTransport> shifts);
|
Task SyncShiftsToCalendarAsync(string calendarId, List<ShiftWithTransport> shifts);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class GoogleCalendarService(IHttpContextAccessor httpContextAccessor, IConfigurationService configurationService)
|
public class GoogleCalendarService(IHttpContextAccessor httpContextAccessor, IConfigurationService configurationService)
|
||||||
: IGoogleCalendarService
|
: IOldGoogleCalendarService
|
||||||
{
|
{
|
||||||
public async Task<List<CalendarListEntry>> GetCalendarsAsync()
|
public async Task<List<CalendarListEntry>> GetCalendarsAsync()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue