添加项目文件。
This commit is contained in:
27
XKRS.Common.Model/Interface/IDevice.cs
Normal file
27
XKRS.Common.Model/Interface/IDevice.cs
Normal 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; }
|
||||
}
|
||||
|
||||
}
|
13
XKRS.Common.Model/Interface/IExceptionHandler.cs
Normal file
13
XKRS.Common.Model/Interface/IExceptionHandler.cs
Normal 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
|
||||
{
|
||||
|
||||
}
|
||||
}
|
14
XKRS.Common.Model/Interface/ILogger.cs
Normal file
14
XKRS.Common.Model/Interface/ILogger.cs
Normal 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;
|
||||
|
||||
}
|
||||
}
|
29
XKRS.Common.Model/Interface/IProcess.cs
Normal file
29
XKRS.Common.Model/Interface/IProcess.cs
Normal 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);
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user