using Microsoft.AspNetCore.Mvc;
using WIDESEA_IStoragIntegrationServices;
using WIDESEA_IStorageSocketServices;
using WIDESEA_DTO.AGV;
using WIDESEA_StorageSocketServices;
namespace WIDESEA_WMSServer.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class SocketController : Controller
{
private readonly IHttpContextAccessor _httpContextAccessor;
public SocketClientService _service { get; set; }
public SocketController(IHttpContextAccessor httpContextAccessor, SocketClientService socketClientService)
{
_httpContextAccessor = httpContextAccessor;
_service = socketClientService;
}
///
/// 是否在线
///
///
[HttpGet, HttpPost, Route("Socketonline"), AllowAnonymous]
public bool Socketonline()
{
return _service.Socketonline();
}
}
}