添加项目文件。

This commit is contained in:
17860779768
2023-03-24 09:58:42 +08:00
parent 2c3a2dbe4f
commit 03e8e92c40
38 changed files with 2716 additions and 0 deletions

View File

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static XKRS.Common.Model.Helper.EnumHelper;
namespace XKRS.Common.Interface
{
public interface IDevice:IDisposable,INotifyPropertyChanged,ISimpleDevice,ILogger,IExceptionHandler
{
event Action<IDevice, DeviceState> OnDeviceStateChanged;
}
public interface ISimpleDevice
{
string Id { get; set; }
}
public class SimpleDevice : ISimpleDevice
{
public string Id { get; set; }
}
}

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace XKRS.Common.Interface
{
public interface IExceptionHandler
{
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace XKRS.Common.Interface
{
public interface ILogger
{
//event Action<LogMsg> OnLog;
}
}

View File

@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace XKRS.Common.Interface
{
public interface IProcess:ILogger,IExceptionHandler
{
/// <summary>
/// 流程使用的硬件设备集合
/// </summary>
List<IDevice> DeviceCollection { get; set; }
/// <summary>
/// 初始化Process
/// </summary>
/// <param name="configPath"></param>
void InitialProcess(string configPath);
}
}