Exemplo n.º 1
0
        public void Setup()
        {
            var inMemoryListener = new StompInMemoryListener();
            _server = new StompServer(inMemoryListener);
            _client1 = new StompClient(new InMemoryTransport(inMemoryListener));

            _server.Start();
            _client1.Connect();
        }
Exemplo n.º 2
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();
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InMemoryTransport"/> class.
 /// </summary>
 /// <param name="stompInMemoryListener">The in memory listener.</param>
 public InMemoryTransport(StompInMemoryListener stompInMemoryListener)
 {
     _stompInMemoryListener = stompInMemoryListener;
 }