コード例 #1
0
        public void Setup()
        {
            var inMemoryListener = new StompInMemoryListener();
            _server = new StompServer(inMemoryListener);
            _client1 = new StompClient(new InMemoryTransport(inMemoryListener));

            _server.Start();
            _client1.Connect();
        }
コード例 #2
0
        public void Setup()
        {
            var inMemoryListener = new StompInMemoryListener();

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

            _server.Start();
            _client1.Connect();
        }
コード例 #3
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();
        }
コード例 #4
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();
        }
コード例 #5
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;
 }
コード例 #6
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;
 }