Dongle abfrage hinzugefügt

This commit is contained in:
2023-08-06 16:24:27 +02:00
parent 28ad24751d
commit 16ac432831
7 changed files with 251 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
using SewerStammGen.Shared.Domain;
using SewerStammGen.Shared;
using SewerStammGen.Shared.Domain;
using SewerStammGen.Shared.Enum;
using Shared.Contracts;
using System;
@@ -16,6 +17,15 @@ namespace WWTech_KanalSchnittstelle.Exporter
{
public static IExport Export(EExportType exportType)
{
using(WWRuntime wWRuntime = new WWRuntime(21))
{
if(!wWRuntime.CheckDongleVorhanden())
{
throw new DongleNotFoundException();
}
wWRuntime.IncrementExportCounter();
wWRuntime.CleanDongle();
}
switch(exportType)
{
case EExportType.KANDIS6: return new KANDIS60();