How to Injecting Application Settings into Azure Functions v3.0 using IOptions<>

Always getting JwtIssuerOptions null values

Say our settings file, local.settings.json contains the following data:

```
 {
  "IsEncrypted": false,
 "Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"SqlConnectionString": "Server"
},
"JwtIssuerOptions": {
"JwtKey": "rpqru",
"JwtIssuer": "mydomain",
"JwtExpireDays": 7,
"JwtExpireMinutes": 240,
"JwtAuidence": "localhost"
  }
}

```

Function Startup

public class Startup : FunctionsStartup
{

```
  public override void Configure(IFunctionsHostBuilder builder)
    {
        var localConfig = new ConfigurationBuilder()
             .SetBasePath(Environment.CurrentDirectory)
             .AddJsonFile("local.settings.json", optional: true, reloadOnChange: true)
           .AddEnvironmentVariables()
           .Build();           
        builder.Services.AddOptions<JwtIssuerOptions>().Configure<IConfiguration>((settings, configuration) =>
        {
            configuration.Bind("JwtIssuerOptions", settings);
        });
    }

```

JwtIssuerOptions Class Like bellow

```
public class JwtIssuerOptions

  {

    public string JwtKey { get; set; }

    public string JwtIssuer { get; set; }

    public int JwtExpireDays { get; set; }

    public int JwtExpireMinutes { get; set; }

    public string JwtAuidence { get; set; }
}

```

Functions Like Bellow

```
   public class MyFunctions

 {

  private readonly IOptions<JwtIssuerOptions> _options;

  public MyFunctions(IOptions<ApplicationSettings> applicationSettingsOptions, 
  IOptions<JwtIssuerOptions>  options)
  {
 // the named section of the configuration file "JwtIssuerOptions"
  _options;= options;
   }

   }

```