api - How to Communicate DLLs in C# -


That's what I want to achieve:

There will be DLL which only includes methods that The actual methods are called by my application and I can share that DLL with the outside world, even though joining that method, the actual methods are in DLL in my application, but if someone uses it Work for something in my application May I wish limitations.

I hope I can tell what I want. I do not know if you've ever used Skype4COM.dll. It actually works like this, it somehow connects to the Skype client and lets me call some people I want. For example:

  Skype s = new Skype (); S.PlaceCall ("PhoneNumber");  

I import Skype 4 com DL in my project and when I write the code above in C #, it connects and calls to Skype.

I think there is no real way to call Skype4Com.dll. I think that some types of methods that reach the real methods in the Skype API are used and what developers do in Skype Change, call, this is Skype 4 com DL. The cover does not affect, as long as the signature remains the same.

So, this is what I want to get, I am not interested in writing rappers, it was a sample matter, I want to write a DLL which reaches my API and the method of signing Uses and allows people to use the application outside, so long as the signature remains the same, if I want to change something between the block then I do not need to change the outside dell. .

Thank you in advance.

If I understand you correctly, then you can use one of the users Want to expose a limited subset? In fact, you want to offer a service, but nothing else.

Then you should use the Windows Communication Foundation to host a service within your application (or other place). This service can use industry-standard protocols such as SOAP; Or can use comfort; Or it could use more binary transactions than TCP / IP for your NIT customers.

This is perfect for you as a service-oriented situation.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -