mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
add back commented dependencies, optimize references
This commit is contained in:
parent
77ddd21be4
commit
21dccf4c9f
3 changed files with 7 additions and 9 deletions
|
|
@ -16,6 +16,7 @@
|
|||
<Folder Include="wwwroot\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="JetBrains.Annotations" Version="10.4.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.1" />
|
||||
|
|
|
|||
|
|
@ -1,24 +1,21 @@
|
|||
using System.IO;
|
||||
//using JetBrains.Annotations;
|
||||
using JetBrains.Annotations;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
|
||||
namespace FilterLists.Api
|
||||
{
|
||||
//[UsedImplicitly]
|
||||
[UsedImplicitly]
|
||||
public class Program
|
||||
{
|
||||
//[UsedImplicitly]
|
||||
[UsedImplicitly]
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
var host = new WebHostBuilder()
|
||||
.UseKestrel()
|
||||
.UseContentRoot(Directory.GetCurrentDirectory())
|
||||
.UseIISIntegration()
|
||||
.UseStartup<Startup>()
|
||||
.UseUrls("http://localhost:5123")
|
||||
//.UseApplicationInsights()
|
||||
.Build();
|
||||
|
||||
host.Run();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
using FilterLists.Api.DependencyInjection.Extensions;
|
||||
using FilterLists.Data.DependencyInjection.Extensions;
|
||||
using FilterLists.Services.DependencyInjection.Extensions;
|
||||
using JetBrains.Annotations;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
//using JetBrains.Annotations;
|
||||
|
||||
namespace FilterLists.Api
|
||||
{
|
||||
|
|
@ -28,7 +28,7 @@ public Startup(IHostingEnvironment env, ILoggerFactory loggerFactory)
|
|||
|
||||
private IConfigurationRoot Configuration { get; }
|
||||
|
||||
//[UsedImplicitly]
|
||||
[UsedImplicitly]
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddFilterListsRepositories(Configuration);
|
||||
|
|
@ -36,7 +36,7 @@ public void ConfigureServices(IServiceCollection services)
|
|||
services.AddFilterListsApi();
|
||||
}
|
||||
|
||||
//[UsedImplicitly]
|
||||
[UsedImplicitly]
|
||||
public void Configure(IApplicationBuilder app)
|
||||
{
|
||||
app.UseMvc();
|
||||
|
|
|
|||
Loading…
Reference in a new issue