Initial work on getting minimal API to work
This commit is contained in:
31
AS1024.GeoFeed.Core/Interfaces/IGeoFeedCacheProvider.cs
Normal file
31
AS1024.GeoFeed.Core/Interfaces/IGeoFeedCacheProvider.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using AS1024.GeoFeed.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AS1024.GeoFeed.Core.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a persistent cache GeoFeed provider
|
||||
/// </summary>
|
||||
public interface IGeoFeedPersistentCacheProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// Name of the provider
|
||||
/// </summary>
|
||||
public string ProviderName { get; }
|
||||
/// <summary>
|
||||
/// Returns the GeoFeed
|
||||
/// </summary>
|
||||
/// <returns>String of the CSV geofeed</returns>
|
||||
public string GetGeoFeed();
|
||||
/// <summary>
|
||||
/// Stores the GeoFeed in the cache backend
|
||||
/// </summary>
|
||||
/// <param name="pGeoFeeds">GeoFeed retrieved from the backend</param>
|
||||
/// <returns></returns>
|
||||
public Task<bool> CacheGeoFeed(IList<IPGeoFeed> pGeoFeeds);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user