/// <summary> /// receive message handler /// </summary> /// <param name="sender">The sender</param> /// <param name="message">The soap envelope message</param> private void Server_ReceiveProbeMessage(IPEndPoint sender, SoapEnvelope message) { WsdHeader header = (WsdHeader)message.Header; ProbeType probe = ((ProbeOp)message.Body).Probe; if (this.receive && (!this.returned.Contains(header.MessageID.Value))) { this.CaptureHeaderRequirements(header); this.CaptureProbeRequirements(probe); PccrdBothRoleCaptureCode.CaptureCommonRequirements(Site); PccrdBothRoleCaptureCode.CaptureTypesElementRequirements(probe.Types, Site); PccrdBothRoleCaptureCode.CaptureScopesElementRequirements(probe.Scopes, Site); ProbeMsg probeMsg = new ProbeMsg(header.MessageID.Value, probe.Types, probe.Scopes.Text[0]); this.ReceiveProbeMessage(sender, probeMsg); } }