45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
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();
|
||
}
|
||
}
|