本文介绍了没有插件框架的 XSocket.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在文档中找不到不使用插件框架来启动 XSocket 服务器的方法.

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

我有一个非常简单的库,它包含自己的控制器(位于库本身中)并引用 XSockets.

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

我真的不需要插件框架,它让我感到不安,因为我的库位于一个二进制文件夹中,其中包含许多我无法管理的其他组件.插件框架在如此复杂的环境中无法正常工作,我很确定必须可以获取服务器单例的实例(new() 不工作)而不必使用:

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>();

感谢您的帮助.

推荐答案

我猜是这样的.您的 bin 文件夹中有一个非 .net 程序集.在 XSocket 插件框架 1.1 版中,有一个错误在尝试加载非 .net 程序集时会引发异常.

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.

此问题已在 1.3(当前版本)中修复,升级到 XSockets 3.0.3 应该会解决此问题.

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

这篇关于没有插件框架的 XSocket.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 05:16