Microsoft.Protocols.TestSuites.Common.ResponseSchemaValidationInspector.AfterReceiveReply C# (CSharp) Method

AfterReceiveReply() public method

Inspect the response message and do the schema validation.
public AfterReceiveReply ( System &reply, object correlationState ) : void
reply System The message to be transformed into types and handed back to the client application.
correlationState object Correlation state data
return void
        public void AfterReceiveReply(ref System.ServiceModel.Channels.Message reply, object correlationState)
        {
            this.lastRawResponseMessage = reply.ToString();

            if (this.ValidationEvent != null)
            {
                CustomerEventArgs args = new CustomerEventArgs { RawRequestXml = this.lastRawRequestMessgae, RawResponseXml = this.lastRawResponseMessage };
                this.ValidationEvent(this, args);
            }
        }