示例#1
0
        public static ITransportSource GenerateTransportSource(this WebSocketServer socket, string path)
        {
            var source = new WebSocketSharpServerTransportSource();

            socket.AddWebSocketService(path, () => new WebSocketSharpServerBehavior(source));
            return(source);
        }
示例#2
0
 public WebSocketSharpServerBehavior(WebSocketSharpServerTransportSource source)
 {
     _source = source;
 }
		public WebSocketSharpServerBehavior(WebSocketSharpServerTransportSource source)
		{
			_source = source;
		}
		public static ITransportSource GenerateTransportSource(this WebSocketServer socket, string path)
		{
			var source = new WebSocketSharpServerTransportSource();
			socket.AddWebSocketService(path, () => new WebSocketSharpServerBehavior(source));
			return source;
		}