初始化
This commit is contained in:
43
MQTTServerSideAPI/Controllers/ceshiapiController.cs
Normal file
43
MQTTServerSideAPI/Controllers/ceshiapiController.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user