Class GetMempoolResponseObserver
Handler responsible for handling the server's response for the GetMempool request. The handler reads the response's payload and formats it in user readable format and writes it to the console.
Inheritance
System.Object
ResponseObserverBase<GetMempoolResponse>
RpcResponseObserver<GetMempoolResponse>
GetMempoolResponseObserver
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Catalyst.Core.Modules.Rpc.Client.IO.Observers
Assembly: Catalyst.Core.Modules.Rpc.Client.dll
Syntax
public sealed class GetMempoolResponseObserver : RpcResponseObserver<GetMempoolResponse>, IMessageObserver, IDisposable, IResponseMessageObserver, IRpcResponseObserver
Constructors
| Improve this Doc View SourceGetMempoolResponseObserver(ILogger)
A service used to output the result of the messages handling to the user.
output
Logger to log debug related information.
Declaration
public GetMempoolResponseObserver(ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger |
Methods
| Improve this Doc View SourceHandleResponse(GetMempoolResponse, IChannelHandlerContext, PeerId, ICorrelationId)
Declaration
protected override void HandleResponse(GetMempoolResponse getMempoolResponse, IChannelHandlerContext channelHandlerContext, PeerId senderPeerIdentifier, ICorrelationId correlationId)
Parameters
Type | Name | Description |
---|---|---|
GetMempoolResponse | getMempoolResponse | |
IChannelHandlerContext | channelHandlerContext | |
PeerId | senderPeerIdentifier | |
ICorrelationId | correlationId |
Implements
System.IDisposable