Skip to content

Commit

Permalink
Consume NuGet.Services.Entities and NuGet.Services.Messaging.Email (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierdecoster authored Oct 24, 2018
1 parent 9411c69 commit 8cf7c8d
Show file tree
Hide file tree
Showing 496 changed files with 968 additions and 5,084 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
using Microsoft.Extensions.CommandLineUtils;
using NuGet.Packaging;
using NuGet.Packaging.Core;
using NuGet.Services.Entities;
using NuGet.Services.Search.Client;
using NuGetGallery;
using NuGetGallery.Configuration;
Expand Down Expand Up @@ -447,7 +448,7 @@ public RepositoryMetadataLogMap()

private class FileCursor : IDisposable
{
private FileStream _fileStream;
private readonly FileStream _fileStream;
private StreamWriter _cursorWriter;

public FileCursor(string fileName)
Expand All @@ -473,7 +474,7 @@ public void Dispose()

public DateTime GetCursorTime()
{
using (var reader = new StreamReader(_fileStream, Encoding.ASCII, detectEncodingFromByteOrderMarks: false, bufferSize:100, leaveOpen: true))
using (var reader = new StreamReader(_fileStream, Encoding.ASCII, detectEncodingFromByteOrderMarks: false, bufferSize: 100, leaveOpen: true))
{
reader.BaseStream.Seek(0, SeekOrigin.Begin);

Expand Down
1 change: 1 addition & 0 deletions src/GalleryTools/Commands/HashCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Threading.Tasks;
using Autofac;
using Microsoft.Extensions.CommandLineUtils;
using NuGet.Services.Entities;
using NuGetGallery;
using NuGetGallery.Configuration;
using NuGetGallery.Infrastructure.Authentication;
Expand Down
1 change: 1 addition & 0 deletions src/GalleryTools/Commands/VerifyApiKeyCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.CommandLineUtils;
using NuGet.Services.Entities;
using NuGetGallery;
using NuGetGallery.Infrastructure.Authentication;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using NuGet.Services.Entities;
using NuGetGallery.Auditing.Obfuscation;

namespace NuGetGallery.Auditing.AuditedEntities
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using NuGet.Services.Entities;

namespace NuGetGallery.Auditing.AuditedEntities
{
public class AuditedPackageRegistration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using NuGet.Services.Entities;

namespace NuGetGallery.Auditing.AuditedEntities
{
public class AuditedReservedNamespace
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using NuGet.Services.Entities;

namespace NuGetGallery.Auditing.AuditedEntities
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions src/NuGetGallery.Core/Auditing/CredentialAuditRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

using System;
using System.Collections.Generic;
using NuGet.Services.Entities;

namespace NuGetGallery.Auditing
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using NuGet.Services.Entities;
using NuGetGallery.Auditing.AuditedEntities;

namespace NuGetGallery.Auditing
Expand Down
1 change: 1 addition & 0 deletions src/NuGetGallery.Core/Auditing/PackageAuditRecord.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using NuGet.Services.Entities;
using NuGetGallery.Auditing.AuditedEntities;

namespace NuGetGallery.Auditing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using NuGet.Services.Entities;
using NuGetGallery.Auditing.AuditedEntities;

namespace NuGetGallery.Auditing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Linq;
using System.Collections.Generic;
using NuGetGallery.Auditing.AuditedEntities;
using NuGet.Services.Entities;

namespace NuGetGallery.Auditing
{
Expand Down
1 change: 1 addition & 0 deletions src/NuGetGallery.Core/Auditing/UserAuditRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using NuGet.Services.Entities;
using NuGetGallery.Auditing.AuditedEntities;

namespace NuGetGallery.Auditing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using NuGet.Services.Entities;
using NuGetGallery.Auditing.AuditedEntities;

namespace NuGetGallery.Auditing
Expand Down
2 changes: 0 additions & 2 deletions src/NuGetGallery.Core/CoreConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ public static class CoreConstants
{
public const string AdminRoleName = "Admins";

public const int MaxPackageIdLength = 128;

public const string PackageFileSavePathTemplate = "{0}.{1}{2}";
public const string PackageFileBackupSavePathTemplate = "{0}/{1}/{2}.{3}";

Expand Down
1 change: 1 addition & 0 deletions src/NuGetGallery.Core/CredentialTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using NuGet.Services.Entities;

namespace NuGetGallery
{
Expand Down
45 changes: 0 additions & 45 deletions src/NuGetGallery.Core/Entities/AccountDelete.cs

This file was deleted.

65 changes: 0 additions & 65 deletions src/NuGetGallery.Core/Entities/Certificate.cs

This file was deleted.

114 changes: 0 additions & 114 deletions src/NuGetGallery.Core/Entities/Credential.cs

This file was deleted.

Loading

0 comments on commit 8cf7c8d

Please sign in to comment.