public void DoExample(string sampleInput) { try { _logFactory.Trace().WithMessage("Customer ({0})", "AccountNumber"); switch (sampleInput) { case "thing": break; default: _logFactory.Warn().WithMessage("Thing Comparor does not handler this case {0}", sampleInput); break; } } catch (Exception ex) { _logFactory.Error().WithException(ex); throw; } }
public void FocusElement(ElementReference element) { log?.Trace(this, "BrowserHelper", $"Call FocusElementByRef."); xJs.InvokeVoidAsync("focusElementByRef", element); }