void DoMyAction() { isRecording.Value = Gif.IsRecording((Recorder)recorder.Value); if (isRecording.Value) { Fsm.Event(isRecordingEvent); } else { Fsm.Event(isNotRecordingEvent); } }