OdooAPI/OdooAPI/Program.cs
2026-02-13 14:55:57 +01:00

45 lines
1.3 KiB
C#
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using OdooAPI.Import;
using OdooAPI.Services;
internal class Program
{
static async Task Main(string[] args)
{
try
{
// =====================================
// 1⃣ XML IMPORT
// =====================================
Console.WriteLine("=================================");
Console.WriteLine("XML IMPORT START");
Console.WriteLine("=================================");
var xml = new XmlImportRunner();
xml.Run();
Console.WriteLine("XML IMPORT KLAAR\n");
// =====================================
// 2⃣ ODOO SYNC
// =====================================
Console.WriteLine("=================================");
Console.WriteLine("ODOO SYNC START");
Console.WriteLine("=================================");
var app = new OdooSyncApp();
await app.RunAsync();
Console.WriteLine("\nKlaar.");
}
catch (Exception ex)
{
Console.WriteLine("\nFOUT:");
Console.WriteLine(ex);
}
Console.WriteLine("\nDruk op een toets om te sluiten...");
Console.ReadKey();
}
}