using Bro.Device.Common.Interface;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using Bro.Device.Common.Helper;
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
namespace Common.Base
|
{
|
public class ProcessBase : IProcess
|
{
|
private EnumHelper.ProcessState _currentState = EnumHelper.ProcessState.Idel;
|
|
[NotMapped]
|
public EnumHelper.ProcessState CurrentState
|
{
|
get
|
{
|
return _currentState;
|
}
|
|
set
|
{
|
if (value != _currentState)
|
{
|
_currentState = value;
|
OnStateChanged();
|
}
|
}
|
}
|
|
public void OnStateChanged()
|
{
|
//throw new NotImplementedException();
|
}
|
}
|
}
|