QuickNV.DahuaNetSDK.Api
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package QuickNV.DahuaNetSDK.Api --version 1.0.0
NuGet\Install-Package QuickNV.DahuaNetSDK.Api -Version 1.0.0
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="QuickNV.DahuaNetSDK.Api" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add QuickNV.DahuaNetSDK.Api --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: QuickNV.DahuaNetSDK.Api, 1.0.0"
#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 QuickNV.DahuaNetSDK.Api as a Cake Addin #addin nuget:?package=QuickNV.DahuaNetSDK.Api&version=1.0.0 // Install QuickNV.DahuaNetSDK.Api as a Cake Tool #tool nuget:?package=QuickNV.DahuaNetSDK.Api&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
QuickNV.DahuaNetSDK.Api
Avaliable as nuget
Api for Dahua NetSDK.
示例
using QuickNV.DahuaNetSDK.Api;
var host = "127.0.0.1";
var port = 37777;
var user = "admin";
var password = "123456";
try
{
DhSession.Init();
Console.WriteLine("初始化成功!");
//登录
Console.WriteLine("正在登录...");
var session = DhSession.Login(host, port, user, password);
Console.WriteLine("登录成功!");
Console.WriteLine("设备时间: " + session.ConfigService.GetTime());
Console.WriteLine("机器名称: " + session.ConfigService.GetMachineName());
Console.WriteLine("设备序列号: " + session.ConfigService.GetDeviceSerialNumber());
Console.WriteLine("设备类型: " + session.ConfigService.GetDeviceType());
Console.WriteLine("正在读取通道名称...");
session.ChannelService.RefreshChannelsName();
Console.WriteLine("通道:" + string.Join(",", session.ChannelService.AllChannels.Select(t => $"通道{t.Id}_{t.Name}")));
//退出登录
session.Logout();
Console.WriteLine("退出登录完成");
//清理
DhSession.Cleanup();
Console.WriteLine("清理完成");
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
Product | Versions 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.
-
.NETStandard 2.0
- QuickNV.DahuaNetSDK (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.