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

Message interceptor for logging client requests.
Inheritance: IClientMessageInspector, IDispatchMessageInspector
Afficher le fichier Open project: castleproject/Windsor

Méthodes publiques

Méthode 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

Méthode Description
LogMessageContents ( Message &message ) : void
ObtainCorrelationId ( Message message ) : string

Method Details

AfterReceiveReply() public méthode

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

AfterReceiveRequest() public méthode

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

BeforeSendReply() public méthode

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

BeforeSendRequest() public méthode

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

LogMessageInspector() public méthode

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.
Résultat System