Login  •  Register


ApplicationInstance missing in V3.0.0 ?

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

ApplicationInstance missing in V3.0.0 ?

Postby VKuhnle » 27 Jun 2019, 11:08

I recently downloaded the Trail Version of .Net SDK V2.6.3.431_EVAL
with this, I could compile & run following Code:

Code: Select all
    private static void PrintEndpoints(MyServerManager server)       
    {           
      // print the endpoints.           

      Logger.Info("Listening at the following endpoints: {");           
      foreach (EndpointDescription endpoint in ApplicationInstance.Default.Endpoints)           
      {               
        var error = server.Application.GetEndpointStatus(endpoint);               
        Logger.Info($"   {endpoint}: Status={error.ToString(true)}");           
      }
      Logger.Info("} Listening at the following endpoints:");           
    }


Then, I purchased a License and got/installed the Version 3.0.0.439.
When I reference to this version, I cannot compile, as ApplicationInstance cannot be found ?!?
VKuhnle
Newbie
Newbie
 
Posts: 3
Joined: 27 Jun 2019, 10:51

Re: ApplicationInstance missing in V3.0.0 ?

Postby Sebastian » 01 Jul 2019, 09:33

See Changelog: http://documentation.unified-automation ... NGELOG.txt

Split ApplicationInstance to ApplicationInstanceBase and ApplicationInstance.
ApplicationInstanceBase contains the code for the core OPC UA applications.
ApplicationInstance extends ApplicationInstanceBase with toolkit functionality
and is located in UaBase.Windows.
Sebastian
Newbie
Newbie
 
Posts: 6
Joined: 24 Aug 2017, 10:06
Location: Germany

Re: ApplicationInstance missing in V3.0.0 ?

Postby VKuhnle » 10 Jul 2019, 14:10

Thank you for your input. I just missed adding
Code: Select all
using UnifiedAutomation.UaBase.Windows;

to my file... :-X
VKuhnle
Newbie
Newbie
 
Posts: 3
Joined: 27 Jun 2019, 10:51


Return to .NET based OPC UA SDK

Who is online

Users browsing this forum: No registered users and 1 guest