0
我有一個叫做'A'的Web服務。在Web服務C中調用DLL的動態函數#
在這個WS上,我只想留下看安裝的文件夾,換句話說,一起主要的DLL文件。
在這個目錄上,我打算把我的項目的「模塊」,並與我的WS共享功能(操作合同)。
例如:
ModuleOne.dll具備的功能:
string[] getUsersFromDatabase();
MyService.dll具備的功能:
object CallEventByName(string eventName, params string parameters);
和我想象中的使用:
foreach string file in fileList
// Check if DLL file have the function equal to 'eventName',
// call the function passing your parameters if have
當我創建申請SOAP,指明函數名稱和參數。我的WS需要智能來管理這個請求並返回「返回」哈哈。
我可以這樣做嗎?
使用反射來調用DLL函數從WS代碼。 – anmarti