123456789101112131415161718 |
- using OilSourceModel.Models;
- namespace IOilSourceService
- {
- public interface IOilSourceService
- {
- public OilSourceStatusModel OilSourceStatus { get; }
- public bool IsConnect => PLCConnect == null ? false : PLCConnect.IsConnected;
- public Action<bool> ConnectChanged { get; set; }
- public IPLCConnect.IPLCConnect PLCConnect { get; }
- public ICommunication.ICommunication Communication { get; }
- public SQLite.SQLiteConnection DbConnection { get; }
- public void Init(ICommunication.ICommunication communication, SQLite.SQLiteConnection dbConnection);
- public void Start();
- public void Stop();
- public bool IsStart { get; }
- }
- }
|