Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
/ NuGet.Jobs Public archive

Commit

Permalink
Add email hotfix to NuGet.Jobs (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Bommarito authored Nov 9, 2018
1 parent 6f19343 commit 23069be
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<Version>9.0.1</Version>
</PackageReference>
<PackageReference Include="NuGet.Services.Messaging.Email">
<Version>2.33.0</Version>
<Version>2.36.0</Version>
</PackageReference>
<PackageReference Include="NuGet.Services.Storage">
<Version>2.1.3</Version>
Expand Down
2 changes: 1 addition & 1 deletion src/Gallery.CredentialExpiration/Job.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public override void Init(IServiceContainer serviceContainer, IDictionary<string
var serializer = new ServiceBusMessageSerializer();
var topicClient = new TopicClientWrapper(InitializationConfiguration.EmailPublisherConnectionString, InitializationConfiguration.EmailPublisherTopicName);
var enqueuer = new EmailMessageEnqueuer(topicClient, serializer, LoggerFactory.CreateLogger<EmailMessageEnqueuer>());
EmailService = new AsynchronousEmailMessageService(enqueuer);
EmailService = new AsynchronousEmailMessageService(enqueuer, LoggerFactory.CreateLogger<AsynchronousEmailMessageService>());

FromAddress = new MailAddress(InitializationConfiguration.MailFrom);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="NuGet.Services.Messaging.Email">
<Version>2.33.0</Version>
<Version>2.36.0</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<Version>9.0.1</Version>
</PackageReference>
<PackageReference Include="NuGet.Services.Messaging.Email">
<Version>2.33.0</Version>
<Version>2.36.0</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected SupportRequestsNotificationScheduledTask(
var serializer = new ServiceBusMessageSerializer();
var topicClient = new TopicClientWrapper(configuration.EmailPublisherConnectionString, configuration.EmailPublisherTopicName);
var enqueuer = new EmailMessageEnqueuer(topicClient, serializer, loggerFactory.CreateLogger<EmailMessageEnqueuer>());
var messageService = new AsynchronousEmailMessageService(enqueuer);
var messageService = new AsynchronousEmailMessageService(enqueuer, loggerFactory.CreateLogger<AsynchronousEmailMessageService>());
_messagingService = new MessagingService(messageService, loggerFactory.CreateLogger<MessagingService>());

_supportRequestRepository = new SupportRequestRepository(loggerFactory, openSupportRequestSqlConnectionAsync);
Expand Down
8 changes: 4 additions & 4 deletions src/Validation.Symbols/SymbolsValidatorService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ public async Task<IValidationResult> ValidateSymbolsAsync(SymbolsValidatorMessag
{
orphanSymbolFiles.ForEach((symbol) =>
{
_telemetryService.TrackSymbolsAssemblyValidationResultEvent(message.PackageId, message.PackageNormalizedVersion, ValidationStatus.Failed, nameof(ValidationIssue.SymbolErrorCode_MatchingPortablePDBNotFound), assemblyName: symbol);
_telemetryService.TrackSymbolsAssemblyValidationResultEvent(message.PackageId, message.PackageNormalizedVersion, ValidationStatus.Failed, nameof(ValidationIssue.SymbolErrorCode_MatchingAssemblyNotFound), assemblyName: symbol);
});
_telemetryService.TrackSymbolsValidationResultEvent(message.PackageId, message.PackageNormalizedVersion, ValidationStatus.Failed);
return ValidationResult.FailedWithIssues(ValidationIssue.SymbolErrorCode_MatchingPortablePDBNotFound);
return ValidationResult.FailedWithIssues(ValidationIssue.SymbolErrorCode_MatchingAssemblyNotFound);
}
var targetDirectory = Settings.GetWorkingDirectory();
try
Expand Down Expand Up @@ -231,8 +231,8 @@ private bool IsChecksumMatch(string peFilePath, string packageId, string package
}
}
}
_telemetryService.TrackSymbolsAssemblyValidationResultEvent(packageId, packageNormalizedVersion, ValidationStatus.Failed, nameof(ValidationIssue.SymbolErrorCode_MatchingPortablePDBNotFound), assemblyName: Path.GetFileName(peFilePath));
validationResult = ValidationResult.FailedWithIssues(ValidationIssue.SymbolErrorCode_MatchingPortablePDBNotFound);
_telemetryService.TrackSymbolsAssemblyValidationResultEvent(packageId, packageNormalizedVersion, ValidationStatus.Failed, nameof(ValidationIssue.SymbolErrorCode_PdbIsNotPortable), assemblyName: Path.GetFileName(peFilePath));
validationResult = ValidationResult.FailedWithIssues(ValidationIssue.SymbolErrorCode_PdbIsNotPortable);
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public MessageWithCustomDeliveryCount(IBrokeredMessage inner, int deliveryCount)
public DateTimeOffset ScheduledEnqueueTimeUtc { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
public DateTimeOffset ExpiresAtUtc => throw new NotImplementedException();
public DateTimeOffset EnqueuedTimeUtc => throw new NotImplementedException();
public TimeSpan TimeToLive { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }

public string MessageId { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public MessageWithCustomDeliveryCount(IBrokeredMessage inner, int deliveryCount)
public DateTimeOffset ScheduledEnqueueTimeUtc { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
public DateTimeOffset ExpiresAtUtc => throw new NotImplementedException();
public DateTimeOffset EnqueuedTimeUtc => throw new NotImplementedException();
public TimeSpan TimeToLive { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }

public string MessageId { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }

Expand Down

0 comments on commit 23069be

Please sign in to comment.