How can i provide interfaces from a windows service to use its functions with a c# application?

  Kiến thức lập trình

So, here is the thing, i’m trying to consume an SDK from an existing software, It works with .Net 4.7.2, and runs in 32 bits, c#, the application that im developing is with .Net MAUI 7, and i tried to consume directly the .dll, but it just doesnt let me.

I tried making a simple console application that matches the version of the framework and in 32 bits and it worked, so i continued with trying to make a windows service, and i got a valid conection, so, i think that a possible solution could be having a background service that i can consult with my maui app to use its functions, I also tried to make an API rest, but i couldnt make it work, so, any guidance or advice to learn how to expose the sdk functions througt my windows service? or, if there’s a better alternative, pls let me know, maybe if making the api is the correct thing, how should i make the project to make it match the sdk framework and in 32 bits?

LEAVE A COMMENT