-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Warehouse Reports job is done!
- Loading branch information
1 parent
2486f7a
commit 9899c1a
Showing
37 changed files
with
926 additions
and
226 deletions.
There are no files selected for viewing
114 changes: 0 additions & 114 deletions
114
src/Services/NuGet.Services.Platform.Client/AzureStorageReference.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,21 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
|
|||
namespace NuGet.Services | |||
{ | |||
public static class BlobContainerNames | |||
{ | |||
public static readonly string LegacyPackages = "packages"; | |||
public static readonly string LegacyStats = "stats"; | |||
|
|||
public static readonly string Backups = "ng-backups"; | |||
} | |||
|
|||
public static class MimeTypes | |||
{ | |||
public static readonly string Json = "application/json"; | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/Services/Work/NuGet.Services.Work/Helpers/ResourceHelpers.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,27 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.IO; | |||
using System.Linq; | |||
using System.Reflection; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
|
|||
namespace NuGet.Services.Work.Helpers | |||
{ | |||
public static class ResourceHelpers | |||
{ | |||
public static Task<string> ReadResourceFile(string name) | |||
{ | |||
return ReadResourceFile(name, typeof(ResourceHelpers).Assembly); | |||
} | |||
|
|||
public static async Task<string> ReadResourceFile(string name, Assembly asm) | |||
{ | |||
using (var stream = asm.GetManifestResourceStream(name)) | |||
using (var reader = new StreamReader(stream)) | |||
{ | |||
return await reader.ReadToEndAsync(); | |||
} | |||
} | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.