예제 #1
0
        private void ValidateReceivedIntegrationEvent(IntegrationEvent @event)
        {
            var result = @event.Validate();

            if (!result.IsValid)
            {
                throw new ArgumentException(
                          $"Received IntegrationEvent '{@event.EventGuid}' is not valid. " +
                          $"Reason: {result.Message}");
            }
        }