public override Object Attend() { TISCameraDriver driver = TISCameraManager.GetReference().getDriver(camera); DriverOperation operation = driver.GetCurrentOperation(); return(operation); }
// ................................................................... public IEnumerable <FormatInstruction> Match(DriverOperation Operation, string Text) { var result = this._drivers .Where((driver) => driver.Abilities.HasFlag(Operation)) .SelectMany((driver) => driver.Match(Operation, Text)) .ToList(); return(result); }
// ................................................................... public IEnumerable <FormatInstruction> Match(DriverOperation Operation, string Text) { if (!this._ruleIndex.Value.TryGetValue(Operation, out List <ISyntaxRule> rules)) { return(new FormatInstruction[0]); } List <FormatInstruction> matches = rules .SelectMany((rule) => rule.Match(Text)) .ToList(); return(matches); }