Наследование: IStompClient
Пример #1
0
        public static MockClient GetAConnectedClient(this IStompListener listener)
        {
            var client = new MockClient();
            listener.OnConnect(client);
            client.OnMessage(new StompMessage("CONNECT"));

            return client;
        }
Пример #2
0
 public bool Equals(MockClient other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     return(ReferenceEquals(this, other) || other.SessionId.Equals(SessionId));
 }
Пример #3
0
        public static MockClient GetAConnectedClient(this IStompListener listener)
        {
            var client = new MockClient();

            listener.OnConnect(client);
            client.OnMessage(new StompMessage("CONNECT"));

            return(client);
        }
Пример #4
0
 public bool Equals(MockClient other)
 {
     if (ReferenceEquals(null, other)) return false;
     return ReferenceEquals(this, other) || other.SessionId.Equals(SessionId);
 }