コード例 #1
0
        public void Setup()
        {
            _listener = new MockListener();
            _server   = new StompServer(_listener);

            _server.Start();
        }
コード例 #2
0
        public void Setup()
        {
            _listener = new MockListener();
            _server = new StompServer(_listener);

            _server.Start();
        }
コード例 #3
0
        protected Given_a_stomp_bus()
        {
            StompServer = new StompServer(new StompWsListener(new Uri("ws://localhost:8181")));
            StompServer.Start();

            LocalUri      = new Uri("stomp://localhost:8181/test_queue");
            LocalErrorUri = new Uri("stomp://localhost:8181/test_queue_error");
        }
コード例 #4
0
        public void Setup()
        {
            var inMemoryListener = new StompInMemoryListener();
            _server = new StompServer(inMemoryListener);
            _client1 = new StompClient(new InMemoryTransport(inMemoryListener));

            _server.Start();
            _client1.Connect();
        }
コード例 #5
0
        private static void StartWebsocketServer()
        {
            Console.Out.WriteLine("starting the websockets service");

            var wsListener = new StompWsListener(new Uri("ws://localhost:61614/"));
            var server     = new StompServer(wsListener);

            server.Start();
        }
コード例 #6
0
        public void Setup()
        {
            var inMemoryListener = new StompInMemoryListener();

            _server  = new StompServer(inMemoryListener);
            _client1 = new StompClient(new InMemoryTransport(inMemoryListener));

            _server.Start();
            _client1.Connect();
        }
コード例 #7
0
        public void Setup()
        {
            const string pipeName = "ws://localhost:8080/";

            _server = new StompServer(new StompWebsocketListener(pipeName));
            _client = new StompClient(new WebTransportTransport(pipeName));

            _server.Start();
            _client.Connect();
        }
コード例 #8
0
        public void Setup()
        {
            const string pipeName = "ws://localhost:8080/";

            _server = new StompServer(new StompWebsocketListener(pipeName));
            _client = new StompClient(new WebTransportTransport(pipeName));

            _server.Start();
            _client.Connect();
        }
コード例 #9
0
        public void Setup()
        {
            var inMemoryListener = new StompInMemoryListener();
            var wsListener = new StompWebsocketListener("ws://localhost:8080/");

            _server = new StompServer(inMemoryListener, wsListener);
            _client1 = new StompClient(new InMemoryTransport(inMemoryListener));
            _client2 = new StompClient(new WebTransportTransport("ws://localhost:8080/"));

            _server.Start();

            _client1.Connect();
            _client2.Connect();
        }
コード例 #10
0
        public void Setup()
        {
            var inMemoryListener = new StompInMemoryListener();
            var wsListener       = new StompWebsocketListener("ws://localhost:8080/");

            _server  = new StompServer(inMemoryListener, wsListener);
            _client1 = new StompClient(new InMemoryTransport(inMemoryListener));
            _client2 = new StompClient(new WebTransportTransport("ws://localhost:8080/"));

            _server.Start();

            _client1.Connect();
            _client2.Connect();
        }
コード例 #11
0
ファイル: Program.cs プロジェクト: ernstnaezer/ultralight
        private static void Main(string[] args)
        {
            const string address = "ws://localhost:8181/";
            var wsListener = new StompWebsocketListener(address);

            wsListener.OnConnect
                += stompClient =>
                       {
                           Console.WriteLine("a new client connected!");
                           stompClient.OnMessage += msg => Console.Out.WriteLine("msg received: {0} {1}", msg.Command, msg.Body);
                       };

            var server = new StompServer(wsListener);
            server.Start();

            var client = new StompClient(new WebTransportTransport(address));
            client.Connect();
            client.Send("/queue/test", "hi there. you are the first to connect");

            Console.Out.WriteLine("Press [Enter] to stop the server");
            Console.ReadLine();
        }
コード例 #12
0
        private static void Main(string[] args)
        {
            const string address    = "ws://localhost:8181/";
            var          wsListener = new StompWebsocketListener(address);

            wsListener.OnConnect
                += stompClient =>
                {
                Console.WriteLine("a new client connected!");
                stompClient.OnMessage += msg => Console.Out.WriteLine("msg received: {0} {1}", msg.Command, msg.Body);
                };

            var server = new StompServer(wsListener);

            server.Start();

            var client = new StompClient(new WebTransportTransport(address));

            client.Connect();
            client.Send("/queue/test", "hi there. you are the first to connect");

            Console.Out.WriteLine("Press [Enter] to stop the server");
            Console.ReadLine();
        }
コード例 #13
0
ファイル: Program.cs プロジェクト: ernstnaezer/MassTransit-JS
        private static void StartWebsocketServer()
        {
            Console.Out.WriteLine("starting the websockets service");

            var wsListener = new StompWsListener(new Uri("ws://localhost:61614/"));
            var server = new StompServer(wsListener);
            server.Start();
        }
コード例 #14
0
 protected given_a_stomp_server()
 {
     StompServer = new StompServer(new StompWebsocketListener("ws://localhost:8181"));
     StompServer.Start();
 }
コード例 #15
0
 protected given_a_stomp_server()
 {
     StompServer = new StompServer(new StompWebsocketListener("ws://localhost:8181"));
     StompServer.Start();
 }