Engrid.Weather 1.0.2-beta.22101103

This is a prerelease version of Engrid.Weather.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Engrid.Weather --version 1.0.2-beta.22101103                
NuGet\Install-Package Engrid.Weather -Version 1.0.2-beta.22101103                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Engrid.Weather" Version="1.0.2-beta.22101103" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Engrid.Weather --version 1.0.2-beta.22101103                
#r "nuget: Engrid.Weather, 1.0.2-beta.22101103"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Engrid.Weather as a Cake Addin
#addin nuget:?package=Engrid.Weather&version=1.0.2-beta.22101103&prerelease

// Install Engrid.Weather as a Cake Tool
#tool nuget:?package=Engrid.Weather&version=1.0.2-beta.22101103&prerelease                

Engrid.Weather

云谷天气服务组件

使用方式

添加服务注册
    protected override void ConfigBizServices(IServiceCollection services)
    {
        services.AddWeatherExtensions();
    }
添加json配置节点
    "WeatherAPI": {
    "key": "302e8eaa49b14cdf9c273ca51c29bfb0",
    "urlNow": "https://devapi.qweather.com/v7/weather/now",
    "url3d": "https://devapi.qweather.com/v7/weather/3d",
    "url7d": "https://devapi.qweather.com/v7/weather/7d",
    "url24h": "https://devapi.qweather.com/v7/weather/24h",
    "urlLookup": "https://geoapi.qweather.com/v2/city/lookup"
    }

例子

    /// <summary>
    /// 天气测试101030100
    /// </summary>
    /// <param name="WeatherQuery"></param>
    /// <returns></returns>
    [HttpGet]
    public WeatherNow GetTestWeather([FromQuery]WeatherQuery query)
    {

        return Ioc.GetService<IHeFengAPI>().GetNow(query);
    }
    /// <summary>
    /// 获取城市测试
    /// </summary>
    /// <param name="WeatherQuery"></param>
    /// <returns></returns>
    [HttpGet]
    public WeatherLocation GetTestGeoAPI([FromQuery] WeatherQuery query)
    {
        return Ioc.GetService<IHeFengAPI>().GetLookup(query);
    }
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0-rc.22101816 112 10/18/2022
1.0.2-beta.22101103 100 10/11/2022
1.0.1-beta.22101102 103 10/11/2022
0.0.1-beta.22101101 109 10/11/2022