using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Arbitrage { public abstract class BookkeeperService { protected HttpClient mHttpClient; protected readonly ILogger mLogger; public BookkeeperService() { var loggerFactory = LoggerFactory.Create(builder => { builder .AddFilter("Microsoft", LogLevel.Warning) .AddFilter("System", LogLevel.Warning) .AddConsole() .AddEventLog(); }); mLogger = loggerFactory.CreateLogger(); mHttpClient = new HttpClient(); } public abstract Task> GetSportEventsAsync(Sport sport); public abstract Task> GetEventMarketsAsync(BookkeeperEvent bookkeeperEvent); public abstract Task> GetMarketOddsAsync(Event @event, BookkeeperMarket market); } }