/// <summary> /// FsmSceneManager maintains the state of the State Machine. It is intended to be used as a Singleton. /// </summary> /// <param name="downlink">DownlinkManager for connection to IoTHub service</param> public FsmSceneManager(IDownlinkManager downlink, IOptions <StorageConfig> config) { _config = config.Value; _helper = new BlobHelper(_config); _downlink = downlink; Lantern2Character = new Dictionary <string, string>(); //Load LanternToCharacter table if Onboarding is disabled // Prevent outside instantiation _tmr = new Timer { Enabled = false, AutoReset = false }; _tmr.Elapsed += _tmr_Elapsed; Running = false; }
public SceneController(ILogger <SceneController> log, ISceneMgr sceneMgr, IDownlinkManager downlinkManager) { _log = log; _sceneMgr = sceneMgr; _downlinkManager = downlinkManager; }