Skip to content

Commit 8cf7c8d

Browse files
Consume NuGet.Services.Entities and NuGet.Services.Messaging.Email (#6588)
1 parent 9411c69 commit 8cf7c8d

496 files changed

Lines changed: 968 additions & 5084 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/GalleryTools/Commands/BackfillRepositoryMetadataCommand.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using Microsoft.Extensions.CommandLineUtils;
1818
using NuGet.Packaging;
1919
using NuGet.Packaging.Core;
20+
using NuGet.Services.Entities;
2021
using NuGet.Services.Search.Client;
2122
using NuGetGallery;
2223
using NuGetGallery.Configuration;
@@ -447,7 +448,7 @@ public RepositoryMetadataLogMap()
447448

448449
private class FileCursor : IDisposable
449450
{
450-
private FileStream _fileStream;
451+
private readonly FileStream _fileStream;
451452
private StreamWriter _cursorWriter;
452453

453454
public FileCursor(string fileName)
@@ -473,7 +474,7 @@ public void Dispose()
473474

474475
public DateTime GetCursorTime()
475476
{
476-
using (var reader = new StreamReader(_fileStream, Encoding.ASCII, detectEncodingFromByteOrderMarks: false, bufferSize:100, leaveOpen: true))
477+
using (var reader = new StreamReader(_fileStream, Encoding.ASCII, detectEncodingFromByteOrderMarks: false, bufferSize: 100, leaveOpen: true))
477478
{
478479
reader.BaseStream.Seek(0, SeekOrigin.Begin);
479480

src/GalleryTools/Commands/HashCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using System.Threading.Tasks;
1010
using Autofac;
1111
using Microsoft.Extensions.CommandLineUtils;
12+
using NuGet.Services.Entities;
1213
using NuGetGallery;
1314
using NuGetGallery.Configuration;
1415
using NuGetGallery.Infrastructure.Authentication;

src/GalleryTools/Commands/VerifyApiKeyCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Text;
55
using System.Threading.Tasks;
66
using Microsoft.Extensions.CommandLineUtils;
7+
using NuGet.Services.Entities;
78
using NuGetGallery;
89
using NuGetGallery.Infrastructure.Authentication;
910

src/NuGetGallery.Core/Auditing/AuditedEntities/AuditedPackage.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System;
5+
using NuGet.Services.Entities;
56
using NuGetGallery.Auditing.Obfuscation;
67

78
namespace NuGetGallery.Auditing.AuditedEntities

src/NuGetGallery.Core/Auditing/AuditedEntities/AuditedPackageRegistration.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4+
using NuGet.Services.Entities;
5+
46
namespace NuGetGallery.Auditing.AuditedEntities
57
{
68
public class AuditedPackageRegistration

src/NuGetGallery.Core/Auditing/AuditedEntities/AuditedReservedNamespace.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4+
using NuGet.Services.Entities;
5+
46
namespace NuGetGallery.Auditing.AuditedEntities
57
{
68
public class AuditedReservedNamespace

src/NuGetGallery.Core/Auditing/AuditedEntities/AuditedUserSecurityPolicy.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4+
using NuGet.Services.Entities;
5+
46
namespace NuGetGallery.Auditing.AuditedEntities
57
{
68
/// <summary>

src/NuGetGallery.Core/Auditing/CredentialAuditRecord.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
using System;
55
using System.Collections.Generic;
6+
using NuGet.Services.Entities;
67

78
namespace NuGetGallery.Auditing
89
{

src/NuGetGallery.Core/Auditing/FailedAuthenticatedOperationAuditRecord.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4+
using NuGet.Services.Entities;
45
using NuGetGallery.Auditing.AuditedEntities;
56

67
namespace NuGetGallery.Auditing

src/NuGetGallery.Core/Auditing/PackageAuditRecord.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4+
using NuGet.Services.Entities;
45
using NuGetGallery.Auditing.AuditedEntities;
56

67
namespace NuGetGallery.Auditing

0 commit comments

Comments
 (0)