mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
4d177274d4
commit
56f7b4e647
1 changed files with 3 additions and 8 deletions
|
|
@ -1,14 +1,10 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using FilterLists.Agent.AppSettings;
|
||||
using FilterLists.Agent.Extensions;
|
||||
using FilterLists.Agent.Features.Lists;
|
||||
using FilterLists.Agent.Features.Urls;
|
||||
using FilterLists.Agent.Features.Urls.Models.DataFileUrls;
|
||||
using MediatR;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
namespace FilterLists.Agent
|
||||
{
|
||||
|
|
@ -19,10 +15,9 @@ public static class Program
|
|||
public static async Task Main()
|
||||
{
|
||||
BuildServiceProvider();
|
||||
var mediator = _serviceProvider.GetService<IOptions<GitHub>>().Value;
|
||||
Console.WriteLine(mediator.ProductHeaderValue);
|
||||
//await mediator.Send(new CaptureLists.Command());
|
||||
//await mediator.Send(new ValidateAllUrls.Command());
|
||||
var mediator = _serviceProvider.GetService<IMediator>();
|
||||
await mediator.Send(new CaptureLists.Command());
|
||||
await mediator.Send(new ValidateAllUrls.Command());
|
||||
}
|
||||
|
||||
private static void BuildServiceProvider()
|
||||
|
|
|
|||
Loading…
Reference in a new issue