init
This commit is contained in:
26
DataPRO/IService/StateMachine/States/Configure.cs
Normal file
26
DataPRO/IService/StateMachine/States/Configure.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
|
||||
namespace DTS.DASLib.Service.StateMachine
|
||||
{
|
||||
public class Configure : DASStateSelector
|
||||
{
|
||||
public override IDASState StateSelector()
|
||||
{
|
||||
if (AllowApplyConfig())
|
||||
{
|
||||
return States.Instance.ConfigureStart;
|
||||
}
|
||||
return States.Instance.Configure;
|
||||
}
|
||||
|
||||
public override State State => State.Configure;
|
||||
|
||||
public bool AllowApplyConfig()
|
||||
{
|
||||
//needs to decide based on 1) are all channels resolved (or do we even require that?) 2) are there channels out of place
|
||||
//(or do we even care about that?) 3) are there any channels resolved?
|
||||
//for now we'll just return true till there's some logic ready to be put in place
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user