Code cleanup
This commit is contained in:
@@ -39,7 +39,7 @@ namespace AS1024.GeoFeed.Core.CacheService
|
||||
{
|
||||
var scope = host.Services.CreateScope();
|
||||
|
||||
var persistentCacheProvider =
|
||||
var persistentCacheProvider =
|
||||
scope.ServiceProvider.GetRequiredService<IGeoFeedPersistentCacheProvider>();
|
||||
|
||||
var results = await feedProvider.GetGeoFeedDataAsync();
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
using AS1024.GeoFeed.Core.Interfaces;
|
||||
using AS1024.GeoFeed.Models;
|
||||
using AS1024.GeoFeed.Core.Tools;
|
||||
using AS1024.GeoFeed.Models;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace AS1024.GeoFeed.Core.CacheService
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace AS1024.GeoFeed.Core.GeoFeedProviders
|
||||
{
|
||||
public class NetBoxGeoFeedProvider : NetBoxGeoFeedProviderBase, IGeoFeedProvider
|
||||
{
|
||||
public NetBoxGeoFeedProvider(IConfiguration configuration, ILogger<NetBoxGeoFeedProvider> logger, IHttpClientFactory httpClientFactory)
|
||||
public NetBoxGeoFeedProvider(IConfiguration configuration, ILogger<NetBoxGeoFeedProvider> logger, IHttpClientFactory httpClientFactory)
|
||||
: base(configuration, logger, httpClientFactory)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using AS1024.GeoFeed.Core.Interfaces;
|
||||
using AS1024.GeoFeed.Models;
|
||||
using System.Text.Json;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Net.Sockets;
|
||||
using System.Web;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Net.Sockets;
|
||||
using System.Text.Json;
|
||||
using System.Web;
|
||||
|
||||
namespace AS1024.GeoFeed.Core.GeoFeedProviders
|
||||
{
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user