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

InfoExecute() public method

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