Overflow/Overflow.CLI/Program.cs
Andy Pack 4c5fa9e0e6
Some checks are pending
ci / build (8.0.x) (push) Waiting to run
ci / build-Docker (push) Blocked by required conditions
adding wasm client project, github actions, radzen
2024-06-09 18:43:32 +01:00

15 lines
482 B
C#

// See https://aka.ms/new-console-template for more information
using Microsoft.Extensions.Logging.Abstractions;
using MongoDB.Driver;
using Overflow;
using Overflow.SouthernWater;
var driver = new MongoClient("mongodb://localhost");
var api = new SouthernWaterApi(new HttpClient());
await api.LoadApiUrl();
var runner = new SouthernWaterApiJobRunnerPersisting(api, NullLogger<SouthernWaterApiJobRunner>.Instance, driver.GetDatabase("overflow"));
await runner.LoadSpills(5);