services.AddSingleton();
services.AddScoped();
services.ConfigureThis code configures the `MyServiceOptions` class with a value for the `MyServiceSetting` property. Package library for this example: Microsoft.Extensions.DependencyInjection.Options(options => { options.MyServiceSetting = "configured value"; });