Get espace name in .Net

  

Is there any way to get the name of the running espace in c#?

For instance XPTOeSpace.124427925


Thanks in advance

Hi Helio,


Why are you asking that?

Also the name of your module does not include the numbers, that looks like the disk folder and that is very implementation specific. If anything on your logic is dependent on that, it could break with platform changes.


Regards,

João Rosado

Hello João,


I've developed an extension that uses ghostscript which requires an external dll to be loaded.

The code looks something like 'Ghostscript.NET.GhostscriptVersionInfo version = new Ghostscript.NET.GhostscriptVersionInfo(new Version(0, 0, 0), gsDllPath, string.Empty, Ghostscript.NET.GhostscriptLicense.GPL);' where gsDllPath is the Dll path.

Since the dll is deployed with the extension, I'm using the path "C:\Program Files\OutSystems\Platform Server\running\XPTO.1212321\bin2\gsdll64.dll".

How can I have this dynamically?