mirror of
https://github.com/ekinnee/SharpCAT.git
synced 2026-04-21 06:13:40 +00:00
Move SharpCAT.Server contents to top-level Server directory with updated namespaces
Co-authored-by: ekinnee <1707617+ekinnee@users.noreply.github.com>
This commit is contained in:
parent
5d4f39cb67
commit
cae56ac617
12 changed files with 11 additions and 11 deletions
|
|
@ -1,8 +1,8 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using SharpCAT.Server.Models;
|
||||
using SharpCAT.Server.Services;
|
||||
using Server.Models;
|
||||
using Server.Services;
|
||||
|
||||
namespace SharpCAT.Server.Controllers
|
||||
namespace Server.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// Controller for CAT (Computer Aided Transceiver) operations
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.IO.Ports;
|
||||
|
||||
namespace SharpCAT.Server.Models
|
||||
namespace Server.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Response model for listing available serial ports
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
using SharpCAT.Server.Services;
|
||||
using Server.Services;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Library\Library.csproj" />
|
||||
<ProjectReference Include="..\Library\Library.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using System.IO.Ports;
|
||||
|
||||
namespace SharpCAT.Server.Services
|
||||
namespace Server.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface for serial communication services
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System.IO.Ports;
|
||||
using System.Text;
|
||||
|
||||
namespace SharpCAT.Server.Services
|
||||
namespace Server.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Service for managing serial communication with radios using SharpCAT library
|
||||
|
|
@ -9,7 +9,7 @@ namespace SharpCAT.Server.Services
|
|||
public class SerialCommunicationService : ISerialCommunicationService, IDisposable
|
||||
{
|
||||
private readonly ILogger<SerialCommunicationService> _logger;
|
||||
private Serial? _serialConnection;
|
||||
private SharpCAT.Serial? _serialConnection;
|
||||
private SerialPort? _directSerialPort;
|
||||
private string? _currentPortName;
|
||||
private readonly SemaphoreSlim _semaphore = new(1, 1);
|
||||
|
|
@ -25,7 +25,7 @@ namespace SharpCAT.Server.Services
|
|||
{
|
||||
try
|
||||
{
|
||||
var sharpCat = new SharpCAT();
|
||||
var sharpCat = new SharpCAT.SharpCAT();
|
||||
var ports = sharpCat.PortNames;
|
||||
_logger.LogInformation("Found {PortCount} available serial ports", ports?.Length ?? 0);
|
||||
return ports ?? Array.Empty<string>();
|
||||
Loading…
Add table
Add a link
Reference in a new issue