c++ - C# wcf service plugin model -


i planning project management system companies proprietary server technology. system consist of 3 main components: service runs on servers want control, central management server sends commands/gets data services, , client application connects central management server. these components written in c#, , communicate via wcf.

the challenge face enabling plugin-in support service running on servers. of tutorials/examples i've found 10 years old, , none deal implications of wcf.

here example of functionality need:

another developer @ company (who doesn't have access source of system) wants able disk space c:\ drive on 1 of servers using client app of management system. create dll copied server, , added config file service. should able disk space server no further changes system.

a nice-to-have, although i'm not sure possible, support plugins written in either c#, c++, or delphi.

i looking place start, tutorials/examples, , general concept of how system (and wcf service contracts) should handle plugins.

thanks, nick

there no real implications of wcf on effect of plugin, add config information new wcf endpoint in app.config or web.config file of hosting app , done.

you should able use tutorial on writing plugins in c# , should fine. this tutorial covers pretty well, change instead of scanning folder dll's have list in config file explicitly listing each plugin want loaded.

also may want load plugins in separate appdomains if 1 plugin goes down not bring down entire program.

for loading unmanaged plugins in c++ or delphi need developer write small managed wrapper take care of calling unmanaged code , cleaning after itself.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -