Yaghut.Client
2.7.0
dotnet add package Yaghut.Client --version 2.7.0
NuGet\Install-Package Yaghut.Client -Version 2.7.0
<PackageReference Include="Yaghut.Client" Version="2.7.0" />
<PackageVersion Include="Yaghut.Client" Version="2.7.0" />
<PackageReference Include="Yaghut.Client" />
paket add Yaghut.Client --version 2.7.0
#r "nuget: Yaghut.Client, 2.7.0"
#:package Yaghut.Client@2.7.0
#addin nuget:?package=Yaghut.Client&version=2.7.0
#tool nuget:?package=Yaghut.Client&version=2.7.0
First, you should get your YaghutOptions from Yaghut.Client admin and add this section to your appsettings.[environment].json
"Yaghut": {
"username": "[your username]",
"password": "[your password]",
"BaseAddress": "https://moderntst.namicard.com/yaghuttest/",
"CertificatePassword": "[your certificate password]",
"CertificateContentFilePath":"[Certs\\YaghutClientCertificate.p12]"
}
and get certificate; add it to this root folder Certs/YaghutClientCertificate.p12 as an example,
so to get full path we join HostingEnvironment.ContentRootPath with CertificateContentFilePath.
your stratup ConfigureServices look like this:
public Startup(IConfiguration configuration, IWebHostEnvironment environment)
{
Configuration = configuration;
HostingEnvironment = environment;
}
public void ConfigureServices(IServiceCollection services)
{
if (HostingEnvironment.IsDevelopment())
{
services.AddMockOfYaghutClient();
}
else
{
services.AddYaghutClient(Configuration,HostingEnvironment);
}
}
....
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Newtonsoft.Json (>= 12.0.3)
-
net5.0
- Newtonsoft.Json (>= 12.0.3)
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 |
|---|---|---|
| 2.7.0 | 606 | 1/15/2022 |