コード例 #1
0
        private void validate_package(PackageReadyForValidationMessage message)
        {
            IEnumerable <PackageValidationResult> validationResults = _packageValidationService.validate_package(message.Package);

            EventManager.publish(new PackageValidationResultMessage(message.Package.Id, message.Package.Version.to_string(), validationResults, DateTime.UtcNow));
            EventManager.publish(new PackageFinishedValidationMessage(message.TempDownloadLocation));
        }
コード例 #2
0
        private void validate_package(PackageReadyForValidationMessage message)
        {
            this.Log().Info("Running validation rules...");
            IEnumerable <PackageValidationResult> validationResults = _packageValidationService.validate_package(message.Package);

            EventManager.publish(new PackageValidationResultMessage(message.PackageId, message.PackageVersion, validationResults, DateTime.UtcNow));
            EventManager.publish(new PackageFinishedValidationMessage(message.TempDownloadLocation));
        }