Dongle abfrage hinzugefügt
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user