C# Class Castle.Facilities.WcfIntegration.Behaviors.LogMessageInspector

Message interceptor for logging client requests.
Inheritance: IClientMessageInspector, IDispatchMessageInspector
Mostrar archivo Open project: castleproject/Windsor

Public Methods

Method Description
AfterReceiveReply ( Message &reply, object correlationState ) : void

Logs the incoming response.

AfterReceiveRequest ( Message &request, IClientChannel channel, System.ServiceModel.InstanceContext instanceContext ) : object

Logs the incoming request.

BeforeSendReply ( Message &reply, object correlationState ) : void

Logs the outgoing response.

BeforeSendRequest ( Message &request, IClientChannel channel ) : object

Logs the outgoing request.

LogMessageInspector ( IExtendedLogger logger, IFormatProvider formatter, string format ) : System

Constructs a new LogMessageInspector

Private Methods

Method Description
LogMessageContents ( Message &message ) : void
ObtainCorrelationId ( Message message ) : string

Method Details

AfterReceiveReply() public method

Logs the incoming response.
public AfterReceiveReply ( Message &reply, object correlationState ) : void
reply Message
correlationState object
return void

AfterReceiveRequest() public method

Logs the incoming request.
public AfterReceiveRequest ( Message &request, IClientChannel channel, System.ServiceModel.InstanceContext instanceContext ) : object
request Message
channel IClientChannel
instanceContext System.ServiceModel.InstanceContext
return object

BeforeSendReply() public method

Logs the outgoing response.
public BeforeSendReply ( Message &reply, object correlationState ) : void
reply Message
correlationState object
return void

BeforeSendRequest() public method

Logs the outgoing request.
public BeforeSendRequest ( Message &request, IClientChannel channel ) : object
request Message
channel IClientChannel
return object

LogMessageInspector() public method

Constructs a new LogMessageInspector
public LogMessageInspector ( IExtendedLogger logger, IFormatProvider formatter, string format ) : System
logger IExtendedLogger The logger.
formatter IFormatProvider The formatter.
format string The format.
return System