diff --git a/FastOptions/FastOptions.csproj b/FastOptions/FastOptions.csproj index 47f3e86..6e51462 100644 --- a/FastOptions/FastOptions.csproj +++ b/FastOptions/FastOptions.csproj @@ -4,7 +4,7 @@ net6.0 enable enable - 1.0.0-rc + 1.0.0 FastOptions Sermo A significantly faster drop in replacement for the default OptionsManager provided by ASP.NET core. diff --git a/README.md b/README.md index f67ded7..482f8c1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,15 @@ # FastOptions A significantly faster drop in replacement for the default OptionsManager provided by ASP.NET core. + +## Background +The default OptionsManager implementation for IOptionsSnapshot<> has significant performance deficiencies. +This library provides a workaround for these deficiencies by attempting to utilize IOptionsMonitor<> when possible. +The library falls back to OptionsManager when IOptionsMonitor<> is not available. + +[The performance issue is being tracked here.](https://github.com/dotnet/runtime/issues/53793) + +## Usage +```csharp +services.AddFastOptions(); +``` +You can then inject IOptionsSnapshot<> as you normally would. \ No newline at end of file