This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

WI code differences between 8.1 and 8.0.1

Hi there!

I'm running some labs and checking custom mods between versions prior our upgrade from 8.0.1 to 8.1. I'm focused on the web interface.

Is there a way I could run this 8.1 code:

var conn = new VI.WebRuntime.ServiceConnection(VI.WebRuntime.IoC.UnitySingleton.Container.Resolve<IConfigDocument>()).Get();

in version 8.0.1 ? When I compile the web project I get an error:

 'VI.WebRuntime.ServiceConnection' does not have a constructor taking 1 arguments.(CS1729)

Regards!

Parents
  • Hello Juan,

    Use this:

    VI.WebRuntime.ServiceConnection.Get()

    But note that unlike 8.1, this call will open a dedicated connection, so you are responsible for closing it by calling Dispose() once you no longer need it.

    Regards

    Hanno

Reply
  • Hello Juan,

    Use this:

    VI.WebRuntime.ServiceConnection.Get()

    But note that unlike 8.1, this call will open a dedicated connection, so you are responsible for closing it by calling Dispose() once you no longer need it.

    Regards

    Hanno

Children