Skip to content
Permalink
Browse files
Throw an exception for StreamMessage conversion since Stomp can't send or receive them.
  • Loading branch information
Timothy A. Bish committed Aug 26, 2010
1 parent 588f5ae commit 54b7f8c41ad83bb2a67b265df2d81245a3352f7b
Showing 1 changed file with 1 addition and 3 deletions.
@@ -55,9 +55,7 @@ protected override ITextMessage DoCreateTextMessage()

protected override IStreamMessage DoCreateStreamMessage()
{
StreamMessage message = new StreamMessage();
message.Connection = this.connection;
return message;
throw new NotSupportedException("Stomp Cannot process Stream Messages");
}

protected override IMapMessage DoCreateMapMessage()

0 comments on commit 54b7f8c

Please sign in to comment.