You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using Flurl;
|
|
|
|
using Flurl.Http;
|
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace OnvifSocketServer
|
|
|
|
{
|
|
|
|
public class Program
|
|
|
|
{
|
|
|
|
public static void Main(string[] args)
|
|
|
|
{
|
|
|
|
Console.WriteLine("Hello World!");
|
|
|
|
|
|
|
|
string onvifHttpUrl = AppConfig.GetOnvifHttpUrl();
|
|
|
|
string onvifHttpsUrl = AppConfig.GetOnvifHttpsUrl();
|
|
|
|
Console.WriteLine(onvifHttpUrl, onvifHttpsUrl);
|
|
|
|
var baseUri = new Uri(onvifHttpUrl);
|
|
|
|
var absoluteUri = new Uri(baseUri, "onvif/Curd/IsExist");
|
|
|
|
JObject result = absoluteUri.AbsoluteUri
|
|
|
|
.SetQueryParams(new { ip = "192.168.1.105" })
|
|
|
|
.GetJsonAsync<JObject>().Result;
|
|
|
|
Console.WriteLine(result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|