Endjin.Assembly.ChangeDetection.Infrastructure.Tracer.ErrorExecute C# (CSharp) Method

ErrorExecute() public method

Execute the given callback when the current trace level and error severit filter let it pass.
public ErrorExecute ( System.Action action ) : bool
action System.Action The action.
return bool
        public bool ErrorExecute(Action action)
        {
            if (TracerConfig.Instance.IsEnabled(this.myType, MessageTypes.Error, this.myLevel))
            {
                action();
                return true;
            }
            return false;
        }