Beispiel #1
0
        public async Task SendValidationTakingTooLongMessageAsync(SymbolPackage symbolPackage)
        {
            if (symbolPackage == null)
            {
                throw new ArgumentNullException(nameof(symbolPackage));
            }
            var symbolPackageValidationTakingTooLongMessage = new SymbolPackageValidationTakingTooLongMessage(
                _serviceConfiguration,
                symbolPackage,
                _serviceConfiguration.GalleryPackageUrl(symbolPackage.Package.PackageRegistration.Id, symbolPackage.Package.NormalizedVersion));

            await _messageService.SendMessageAsync(symbolPackageValidationTakingTooLongMessage);
        }
Beispiel #2
0
        public async Task SendValidationTakingTooLongMessageAsync(SymbolPackage symbolPackage)
        {
            if (symbolPackage == null)
            {
                throw new ArgumentNullException(nameof(symbolPackage));
            }
            var symbolPackageValidationTakingTooLongMessage = new SymbolPackageValidationTakingTooLongMessage(
                _serviceConfiguration,
                symbolPackage,
                _serviceConfiguration.GalleryPackageUrl(symbolPackage.Package.PackageRegistration.Id, symbolPackage.Package.NormalizedVersion));

            _logger.LogInformation("The validation failed  email will be sent for the symbol {SymbolId} {SymbolVersion}.",
                                   symbolPackage.Id,
                                   symbolPackage.Version);
            await _messageService.SendMessageAsync(symbolPackageValidationTakingTooLongMessage);
        }