-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
44 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# Remote Configuration Provider | ||
|
||
|
||
Work with the power of Microsoft.Extensions.Configuration while still being able to retrieve most configuration from a server (much like secrets). For mobile, get the added benefit of having "cached" configuration in cases where connectivity is not available. This allows you to update things like license keys, data endpoints, & more. Could you do this without this library? Yes - BUT you don't get IOptionsMonitor and have to work with another mediation service everywhere (if remote, use that value, else pull from local) | ||
|
||
This library works great with .NET MAUI and ASP.NET Core applications |
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
25 changes: 22 additions & 3 deletions
25
src/Shiny.Extensions.Configuration.Remote.Maui/MauiAppBuilderExtensions.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
namespace Shiny.Extensions.Configuration.Remote; | ||
|
||
public record RemoteConfig( | ||
string Uri, | ||
string Uri, | ||
IConfiguration CurrentConfiguration, | ||
bool WaitForLoadOnStartup = false, | ||
string ConfigurationFilePath = "remotesettings.json" | ||
); |