public void TearDown(MachineOperator mo) { MachineOperator.WriteMessage("WorkbenchScript: mo_OnClosing"); CloseLog(); }
public void LogEnter([Argument(Source.Name)] string name) { MachineOperator.WriteMessage($"OnExit '{name}'"); }
public void LogEnter([Argument(Source.Arguments)] object[] args) { MachineOperator.WriteMessage($"Trigger '{args[0].ToString()}'"); }
[Advice(Kind.Before)] // you can have also After (async-aware), and Around(Wrap/Instead) kinds public void LogEnter([Argument(Source.Name)] string name) { MachineOperator.WriteMessage($"OnEntry '{name}'"); //you can debug it }