44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Threading;
|
|
using System.Web.Http;
|
|
using System.Xml.Linq;
|
|
|
|
namespace MQTTServerSideAPI.Controllers
|
|
{
|
|
public class propmaeinfo
|
|
{
|
|
public string Name { get; set; }
|
|
public string Description { get; set; }
|
|
public string Type { get; set; }
|
|
public string TypeDescription { get; set; }
|
|
|
|
}
|
|
public class ceshiapiController : ApiController
|
|
{
|
|
// POST: api/ceshiapi
|
|
public string Post([FromBody] string valuedsfsfs)
|
|
{
|
|
Logger.LogCalloutanaSide("准备开始线程:");
|
|
Thread revT = new Thread(sfsfds.InsertCallindd);
|
|
revT.Start(valuedsfsfs);
|
|
Logger.LogCalloutanaSide("准备了一个线程:");
|
|
return "dssssssssssssssssss";
|
|
}
|
|
|
|
}
|
|
public static class sfsfds
|
|
{
|
|
public static void InsertCallindd(object name)
|
|
{
|
|
Console.WriteLine(name);
|
|
}
|
|
|
|
|
|
}
|
|
|
|
}
|