* Initial plan * Implement caching for transport connection results with IMemoryCache Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com> * Change cache duration from minutes to days Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com> * Implement CachedTransportService design with interface separation Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com> * Implement persistent file-based cache to survive application restarts Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com> * Revert persistent file-based cache implementation, restore IMemoryCache usage Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com> * Code cleanup --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com> Co-authored-by: Claudio Schaad <c.schaad@pog.ch>
14 lines
No EOL
337 B
C#
14 lines
No EOL
337 B
C#
using ShiftScheduler.Shared;
|
|
|
|
namespace ShiftScheduler.Services
|
|
{
|
|
public interface ITransportService
|
|
{
|
|
Task<TransportConnection?> GetConnectionAsync(DateTime shiftStartTime);
|
|
}
|
|
|
|
public interface ITransportApiService
|
|
{
|
|
Task<TransportConnection?> GetConnectionAsync(DateTime shiftStartTime);
|
|
}
|
|
} |