Question

2
Replies
39
Views
MichaelD4660 Member since 2017 13 posts
Fifth Third Bank Bank
Posted: September 17, 2019
Last activity: October 7, 2019
Closed

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?

Robotic Process Automation
Moderation Team has archived post
Share this page LinkedIn