-
Notifications
You must be signed in to change notification settings - Fork 643
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Stats]Enable Alternate storage for downloads.v1.json (#8380)
* Add FeatureFlag for secondary stats. * Updating Naming. * Add new Configs. Update downloadcountservice suport alternate endpoint. * Update DependencyInjection to support alternate configuration. * Fix tests for build * Add setting for alternate stats storage * Stub new config to account deleter. * read out warning message (#8382) * Add icons to project to ensure bundling (#8385) * Add FeatureFlag for secondary stats. * Updating Naming. * Add new Configs. Update downloadcountservice suport alternate endpoint. * Update DependencyInjection to support alternate configuration. * Fix tests for build * Add setting for alternate stats storage * Stub new config to account deleter. Co-authored-by: lyndaidaii <64443925+lyndaidaii@users.noreply.github.com> Co-authored-by: Drew Gillies <drewgil@microsoft.com>
- Loading branch information
1 parent
35ca7d7
commit 73b9012
Showing
12 changed files
with
148 additions
and
37 deletions.
There are no files selected for viewing
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
11 changes: 11 additions & 0 deletions
11
src/NuGetGallery.Services/Configuration/IBlobStorageConfiguration.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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// 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. | ||
|
||
namespace NuGetGallery.Services | ||
{ | ||
public interface IBlobStorageConfiguration | ||
{ | ||
string ConnectionString { get; } | ||
bool ReadAccessGeoRedundant { get; } | ||
} | ||
} |
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
26 changes: 26 additions & 0 deletions
26
src/NuGetGallery.Services/Configuration/SimpleBlobStorageConfiguration.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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// 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. | ||
|
||
namespace NuGetGallery.Services | ||
{ | ||
public class SimpleBlobStorageConfiguration : IBlobStorageConfiguration | ||
{ | ||
public string ConnectionString | ||
{ | ||
get; | ||
private set; | ||
} | ||
|
||
public bool ReadAccessGeoRedundant | ||
{ | ||
get; | ||
private set; | ||
} | ||
|
||
public SimpleBlobStorageConfiguration(string connectionString, bool readAccessGeoRedundant) | ||
{ | ||
ConnectionString = connectionString; | ||
ReadAccessGeoRedundant = readAccessGeoRedundant; | ||
} | ||
} | ||
} |
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