- Olaf Brungot
- PowerBuilder
- Thursday, 27 January 2022 12:01 PM UTC
Hi,
As far as I can see from the documentation, it is not supported to use .Net interfaces.
Calling a .Net assembly seems straightforward, but is it possible to call a .Net Assembly which has an interface in the constructor?
Example of class
namespace PowerBuilder.Test
{
public class TestClass : ITestClass
{
private readonly IUnitOfWork _uow;
public TestClass(IUnitOfWork uow)
{
_uow = uow;
}
......
PowerBuilder
lcs_service.LoadWithDotNetFramework ("PowerBuilder.Test.dll")
lcs_service.createinstance("PowerBuilder.Test.TestClass", lcs_objservice, ???)
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.