我正在使用ASP.net中的RTC项目并在VS 2013中使用XSockets.net进行信令。但是当我安装XSockets.net 4.1.0并尝试在App_Start文件夹下创建Xsockets.Net.BootStrapper类时出现错误,Project没有包含Plugin的定义。
BootStrapper.cs:
using System.Web;
using XSockets.Core.Common.Socket;
[assembly: PreApplicationStartMethod(typeof(RTC.App_Start.XSockets), "Start")]
namespace RTC.App_Start
{
public static class XSockets
{
private static IXSocketServerContainer container;
public static void Start()
{
container = XSockets.Plugin.Framework.Composable.GetExport<IXSocketServerContainer>();
container.Start();
}
}
}
答案 0 :(得分:0)
使用此而不是你的
using System.Web;
using XSockets.Core.Common.Socket;
[assembly: PreApplicationStartMethod(typeof(XSockets.WebRTC.App_Start.XSocketsWebBootstrapper), "Start")]
namespace XSockets.WebRTC.App_Start
{
public static class XSocketsWebBootstrapper
{
private static IXSocketServerContainer container;
public static void Start()
{
container = XSockets.Plugin.Framework.Composable.GetExport<IXSocketServerContainer>();
container.Start();
}
}
}