C# Class DotNetWorkQueue.Interceptors.GZipMessageInterceptor

Compresses and de-compress messages using the built in GZIP library
Inheritance: IMessageInterceptor
Exibir arquivo Open project: blehnen/DotNetWorkQueue Class Usage Examples

Public Methods

Method Description
BytesToMessage ( byte input ) : byte[]

Runs the interceptor on the input and returns the output as a byte array. Used to re-construct a message stream.

GZipMessageInterceptor ( GZipMessageInterceptorConfiguration configuration ) : System.IO

Initializes a new instance of the GZipMessageInterceptor class.

MessageToBytes ( byte input ) : MessageInterceptorResult

Runs the interceptor on the input and returns the output as a byte array. Used to serialize a message stream.

Method Details

BytesToMessage() public method

Runs the interceptor on the input and returns the output as a byte array. Used to re-construct a message stream.
public BytesToMessage ( byte input ) : byte[]
input byte The input.
return byte[]

GZipMessageInterceptor() public method

Initializes a new instance of the GZipMessageInterceptor class.
public GZipMessageInterceptor ( GZipMessageInterceptorConfiguration configuration ) : System.IO
configuration GZipMessageInterceptorConfiguration The configuration.
return System.IO

MessageToBytes() public method

Runs the interceptor on the input and returns the output as a byte array. Used to serialize a message stream.
public MessageToBytes ( byte input ) : MessageInterceptorResult
input byte The input.
return MessageInterceptorResult