sermo / FastOptions

A significantly faster drop in replacement for the default OptionsManager provided by ASP.NET core.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Usage

services.AddFastOptions();

You can then inject IOptionsSnapshot<> as you normally would.

About

A significantly faster drop in replacement for the default OptionsManager provided by ASP.NET core.

License:MIT License


Languages

Language:C# 100.0%