1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using LJLib.Client;
- using Microsoft.AspNetCore.Http.Extensions;
- using Microsoft.AspNetCore.Mvc;
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Net.Http;
- using System.Text;
- using System.Threading.Tasks;
- namespace LJProxy.Controllers
- {
- [Route("api/[controller]")]
- public class TestController : Controller
- {
- private readonly IHttpClientFactory _clientFactory;
- public TestController(IHttpClientFactory clientFactory)
- {
- _clientFactory = clientFactory;
- }
- //[HttpGet]
- //[Route("test")]
- //public string test()
- //{
- // var creator = new DirectP1ClientCreator("192.168.0.92", Convert.ToInt32("7940"));
- // var pool = new LJClientPool(creator, 20);
- // var loginObj = new
- // {
- // accountname = "CRP1",
- // userid = "admin",
- // psw = "longjoe",
- // clientType = 10
- // };
- // var result=pool.DoExcute("ClientLogin", Newtonsoft.Json.JsonConvert.SerializeObject(loginObj));
- // return result;
- //}
- }
- }
|