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 ...

Moderator: uasdknet

Post Reply
VKuhnle
Jr. Member
Jr. Member
Posts: 3
Joined: 27 Jun 2019, 10:51

ApplicationInstance missing in V3.0.0 ?

Post by VKuhnle »

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 ?!?

Sebastian
Full Member
Full Member
Posts: 6
Joined: 24 Aug 2017, 10:06

Re: ApplicationInstance missing in V3.0.0 ?

Post by Sebastian »

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.

VKuhnle
Jr. Member
Jr. Member
Posts: 3
Joined: 27 Jun 2019, 10:51

Re: ApplicationInstance missing in V3.0.0 ?

Post by VKuhnle »

Thank you for your input. I just missed adding

Code: Select all

using UnifiedAutomation.UaBase.Windows;
to my file... :-X

Post Reply