Skip to content

Commit

Permalink
fix call of now deleted code
Browse files Browse the repository at this point in the history
  • Loading branch information
Freezor committed Jun 7, 2024
1 parent 16db67a commit 7b3fee7
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions src/AasxServerStandardBib/AasxRestServer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#define MICHA

using AasCore.Aas3_0;
using AasxMqttClient;
using AasxServer;
using AdminShellEvents;
using AdminShellNS;
Expand Down Expand Up @@ -3795,7 +3793,7 @@ public IHttpContext DeleteSpecificCd(IHttpContext context)

private static RestServer startedRestServer = null;

public static void Start(AdminShellPackageEnv[] packages, string host, string port, bool https, GrapevineLoggerSuper logger = null)
public static void Start(AdminShellPackageEnv[] packages, string host, string port, bool https)
{
// if running, stop old server
Stop();
Expand All @@ -3809,23 +3807,10 @@ public static void Start(AdminShellPackageEnv[] packages, string host, string po
serverSettings.Port = port;
serverSettings.UseHttps = https;

if (logger != null)
logger.Warn("Please notice: the API and REST routes implemented in this version of the source code are not specified and standardised by the" +
"specification Details of the Administration Shell. The hereby stated approach is solely the opinion of its author(s).");


startedRestServer = new RestServer(serverSettings);
{
if (logger != null)
startedRestServer.Logger = logger;
startedRestServer.Start();
Console.WriteLine(startedRestServer.ListenerPrefix);
}

// tail of the messages, again
if (logger != null)
logger.Warn("Please notice: the API and REST routes implemented in this version of the source code are not specified and standardised by the" +
"specification Details of the Administration Shell. The hereby stated approach is solely the opinion of its author(s).");
startedRestServer.Start();
Console.WriteLine(startedRestServer.ListenerPrefix);
}

public static void Stop()
Expand Down

0 comments on commit 7b3fee7

Please sign in to comment.