/// <summary> /// Verify that the data contained in the envelope is what we sent. /// </summary> /// <param name="envelope">What we received</param> /// <returns>True if the data contained in the envelope matches what we sent.</returns> public static bool ValidateData(EtwEventEnvelope envelope) { Amazon.KinesisTap.Windows.EtwEvent traceData = envelope.Data; return(envelope.Data.ProcessID == MockProcessID && envelope.Data.ExecutingThreadID == MockEtwEventSource.MockThreadID && envelope.Data.MachineName.Equals(Amazon.KinesisTap.Windows.EtwEvent.GetFQDN()) && traceData.FormattedMessage.Equals(MockFormattedMessage) && traceData.ProviderName.Equals(ClrProviderName) && ValidatePayload(traceData)); }
public static bool ValidateEnvelope(EtwEventEnvelope envelope) { return(MockTraceEvent.ValidateData(envelope)); }