Question
Fifth Third Bank Bank
US
Last activity: 7 Oct 2019 9:54 EDT
What .NET method does OpenSpan.Runtime.RuntimeHost.GetDeploymentPackagePath() call under the covers?
We are creating a method in a class library that could be called from Pega solutions, as well as .NET solutions. The goal is to be able to determine the directory where deployment files are located. With a .NET solution, that could be done with
System.Reflection.Assembly.GetExecutingAssembly().Location
However, that won't work properly when the class is used by an OpenSpan/Pega solution, as it would return the OpenSpan installation directory. Inside an OpenSpan solution, we could use
OpenSpan.Runtime.RuntimeHost.GetDeploymentPackagePath()
... to get the correct folder. However, we don't want to use OpenSpan assembly references inside the our class library. Does GetDeploymentPackagePath use an underlying .NET Framework class method under the covers, in a manner of speaking?