Create Nuget Package Support Dependency Injection

Job ID: 36091262

Budget: $10 – $30 USD

I am trying to create a weather Nuget package that can be used in any .net core project, the library should give me the current weather for a specific city that I chose in Celsius or Fahrenheit.

I will use the weatherapi.com to get the current weather.

The library should support the dependency injection (DI) throw a service called IGetCurrentWeather with one method that’s take a city name and optional parameter to chose whether I want the result in Celsius or Fahrenheit.

I should be able to register the library in the startup of any .NET CORE project and provide the necessary configurations like the Code below

builder.Services.AddWeatherApi(WeatherOptions=>
WeatherOptions.ApiKey= "d1398cba8a894feb9f7180821232602");
Related categories: .NET C# Programming Software Architecture ASP.NET