//using AsbCloudApp.Data; //using AsbCloudDb.Model; //using AsbCloudInfrastructure.Services; //using AsbCloudInfrastructure.Services.Cache; //using AsbSaubReport; //using AutoMapper; //using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.IO; namespace ConsoleApp1 { class Program { static void Main(string[] args) { //var options = new DbContextOptionsBuilder() // .UseNpgsql("Host=localhost;Database=postgres;Username=postgres;Password=q;Persist Security Info=True") // .Options; //var context = new AsbCloudDbContext(options); //var wellId = 1; //var dataSource = new ReportDataSourcePgCloud(context, wellId); //var generator = new PdfGenerator(dataSource) //{ // ReportDirectory = $"{wellId}", // Begin = DateTime.Now.AddYears(-30), // End = DateTime.Now.AddYears(30), // Step = TimeSpan.FromDays(1), // WithCharts = true, // WithEvents = true //}; //generator.OnProgress += Generator_OnProgress; //var s = generator.GetPagesCount(); //var fileName = generator.Make(); Console.WriteLine("Done. Press any key to quit."); Console.ReadKey(); } private static void Generator_OnProgress(object sender, (float progress, string operation) e) { //throw new NotImplementedException(); } } }