Search Results for

    Show / Hide Table of Contents

    Interface ITraceFilter

    Each ActorSystem can implement exactly one of these to control the decision-making around which traces to include and which ones to exclude.

    When this type is configured, it will replace all of the IFilterRules that have been previously defined.

    Namespace: Phobos.Actor.Configuration
    Assembly: Phobos.Actor.dll
    Syntax
    public interface ITraceFilter

    Methods

    ShouldTraceMessage(Object, Boolean)

    Evaluates a message processed by an actor and determines whether or not to include it in the current or a new trace.

    Declaration
    bool ShouldTraceMessage(object message, bool alreadyInTrace)
    Parameters
    Type Name Description
    System.Object message

    The message currently being processed by an actor.

    System.Boolean alreadyInTrace

    Whether or not this message is already part of an active trace.

    Returns
    Type Description
    System.Boolean

    true if we are going to trace the message, false otherwise.

    Remarks

    Should return true unless you are explicitly trying to filter a given message out of your trace.

    See Also

    FilterDecision
    In This Article
    Back to top Generated by DocFX