将S7后台服务移植到DMS.Infrastructure项目中
This commit is contained in:
9
DMS.Application/Interfaces/IDataProcessingService.cs
Normal file
9
DMS.Application/Interfaces/IDataProcessingService.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using DMS.Core.Models;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DMS.Application.Interfaces;
|
||||
|
||||
public interface IDataProcessingService
|
||||
{
|
||||
Task EnqueueAsync(Variable variable);
|
||||
}
|
||||
13
DMS.Application/Interfaces/IDeviceDataService.cs
Normal file
13
DMS.Application/Interfaces/IDeviceDataService.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using DMS.Core.Models;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DMS.Application.Interfaces;
|
||||
|
||||
public interface IDeviceDataService
|
||||
{
|
||||
List<Device> Devices { get; }
|
||||
event Action<List<Device>> OnDeviceListChanged;
|
||||
event Action<Device, bool> OnDeviceIsActiveChanged;
|
||||
Task InitializeAsync();
|
||||
}
|
||||
Reference in New Issue
Block a user