XSocket.net without PlugIn-Framework

隐身守侯 提交于 2020-01-17 03:03:25

问题


I cannot find in the documentation a way to start a XSocket server without using the PlugIn Framework.

I have a very easy library which contains its own controllers (located in the library itself) and which references XSockets.

I don't really need the PlugIn Framework and it is disturbing me because my library is located in a binaries folder with a number of other components that I don't manage. The PlugIn Framework is not working properly in such a complex environment and I'm quite sure it has to be possible to get an instance of the server singleton (new() is not working) without having to use:

server = XSockets.Plugin.Framework.Composable.GetExport<IXSocketServerContainer>();

thanks for your help.


回答1:


My guess is this. You have a non .net assembly in your bin folder. In XSocket plugin framwork version 1.1 there was a bug throwing an exception when trying to load an non .net assembly.

This issue is fixed in 1.3 (current version) and upgrading to XSockets 3.0.3 should take care of this issue.



来源:https://stackoverflow.com/questions/21253682/xsocket-net-without-plugin-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!