Click or drag to resize
Akka.NETEventFilterFactory Class
TBD
Inheritance Hierarchy
SystemObject
  Akka.TestKitEventFilterFactory

Namespace:  Akka.TestKit
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public class EventFilterFactory

The EventFilterFactory type exposes the following members.

Constructors
Methods
  NameDescription
Protected methodCreateApplier
TBD
Protected methodStatic memberCreateMessageMatcher
TBD
Public methodCustom(PredicateLogEvent)
Create a custom event filter. The filter will affect those events for which the predicate function returns true.
Public methodCustomTLogEvent(PredicateTLogEvent)
Create a custom event filter. The filter will affect those events for which the predicate function returns true.
Public methodDeadLetter
Creates a filter that catches dead letters
Public methodDeadLetter(Type, String)
Creates a filter that catches dead letters of the specified type and, optionally from the specified source.
Public methodDeadLetter(Type, FuncObject, Boolean, String)
Creates a filter that catches dead letters of the specified type and matches the predicate, and optionally from the specified source.
Public methodDeadLetterTMessage(String)
Creates a filter that catches dead letters of the specified type and, optionally from the specified source.
Public methodDeadLetterTMessage(FuncTMessage, Boolean, String)
Creates a filter that catches dead letters of the specified type and matches the predicate, and optionally from the specified source.
Public methodCode exampleDebug(Regex, String)
Create a filter for Debug events. Events must match the specified pattern to be filtered.
Examples
Debug(pattern: new Regex("weird.*message"), source: obj) // filter on pattern and source
Remarks
Please note that filtering on the source being null does NOT work (passing null disables the source filter).
Public methodCode exampleDebug(String, String, String, String)
Create a filter for Debug events.

message takes priority over start. If message!=null the event must match it to be filtered. If start!=null and message has not been specified, the event must start with the given string to be filtered. If contains!=null and both message and start have not been specified, the event must contain the given string to be filtered.

Examples
Debug() // filter all Debug events Debug("message") // filter on exactly matching message Debug(source: obj) // filter on event source Debug(start: "Expected") // filter on start of message Debug(contains: "Expected") // filter on part of message
Remarks
Please note that filtering on the source being null does NOT work (passing null disables the source filter).
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodCode exampleError(Regex, String)
Create a filter for Error events. Events must match the specified pattern to be filtered.
Examples
Error(pattern: new Regex("weird.*message"), source: obj) // filter on pattern and source
Remarks
Please note that filtering on the source being null does NOT work (passing null disables the source filter).
Public methodCode exampleError(String, String, String, String)
Create a filter for Error events.

message takes priority over start. If message!=null the event must match it to be filtered. If start!=null and message has not been specified, the event must start with the given string to be filtered. If contains!=null and both message and start have not been specified, the event must contain the given string to be filtered.

Examples
Error() // filter all Error events Error("message") // filter on exactly matching message Error(source: obj) // filter on event source Error(start: "Expected") // filter on start of message Error(contains: "Expected") // filter on part of message
Remarks
Please note that filtering on the source being null does NOT work (passing null disables the source filter).
Public methodCode exampleException(Type, Regex, String, Boolean)
Create a filter for Error events. Events must match the specified pattern to be filtered.
Examples
Exception<MyException>(pattern: new Regex("weird.*message"), source: obj) // filter on pattern and source
Remarks
Please note that filtering on the source being null does NOT work (passing null disables the source filter).
Public methodCode exampleException(Type, String, String, String, String, Boolean)
Create a filter for Error events.

message takes priority over start. If message!=null the event must match it to be filtered. If start!=null and message has not been specified, the event must start with the given string to be filtered.

Examples
Exception(typeof(MyException)) // filter only on exception type Exception(typeof(MyException), "message") // filter on exactly matching message Exception(typeof(MyException), source: obj) // filter on event source Exception(typeof(MyException), start: "Expected") // filter on start of message
Remarks
Please note that filtering on the source being null does NOT work (passing null disables the source filter).
Public methodCode exampleExceptionTException(Regex, String)
Create a filter for Error events. Events must match the specified pattern to be filtered.
Examples
Exception<MyException>(pattern: new Regex("weird.*message"), source: obj) // filter on pattern and source
Remarks
Please note that filtering on the source being null does NOT work (passing null disables the source filter).
Public methodCode exampleExceptionTException(String, String, String, String)
Create a filter for Error events.

message takes priority over start. If message!=null the event must match it to be filtered. If start!=null and message has not been specified, the event must start with the given string to be filtered.

Examples
Exception<MyException>() // filter only on exception type Exception<MyException>("message") // filter on exactly matching message Exception<MyException>(source: obj) // filter on event source Exception<MyException>(start: "Expected") // filter on start of message
Remarks
Please note that filtering on the source being null does NOT work (passing null disables the source filter).
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodForLogLevel(LogLevel, Regex, String)
Creates a filter given the specified logLevel. This is the same as calling Debug(Regex, String), Info(Regex, String)Warning(Regex, String) or Error(Regex, String) directly.
Public methodForLogLevel(LogLevel, String, String, String, String)
Creates an event filter given the specified logLevel. This is the same as calling Debug(String, String, String, String), Info(String, String, String, String)Warning(String, String, String, String) or Error(String, String, String, String) directly.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodCode exampleInfo(Regex, String)
Create a filter for Info events. Events must match the specified pattern to be filtered.
Examples
Info(pattern: new Regex("weird.*message"), source: obj) // filter on pattern and source
Remarks
Please note that filtering on the source being null does NOT work (passing null disables the source filter).
Public methodCode exampleInfo(String, String, String, String)
Create a filter for Info events.

message takes priority over start. If message!=null the event must match it to be filtered. If start!=null and message has not been specified, the event must start with the given string to be filtered. If contains!=null and both message and start have not been specified, the event must contain the given string to be filtered.

Examples
Info() // filter all Info events Info("message") // filter on exactly matching message Info(source: obj) // filter on event source Info(start: "Expected") // filter on start of message Info(contains: "Expected") // filter on part of message
Remarks
Please note that filtering on the source being null does NOT work (passing null disables the source filter).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodCode exampleWarning(Regex, String)
Create a filter for Warning events. Events must match the specified pattern to be filtered.
Examples
Warning(pattern: new Regex("weird.*message"), source: obj) // filter on pattern and source
Remarks
Please note that filtering on the source being null does NOT work (passing null disables the source filter).
Public methodCode exampleWarning(String, String, String, String)
Create a filter for Warning events.

message takes priority over start. If message!=null the event must match it to be filtered. If start!=null and message has not been specified, the event must start with the given string to be filtered. If contains!=null and both message and start have not been specified, the event must contain the given string to be filtered.

Examples
Warning() // filter all Warning events Warning("message") // filter on exactly matching message Warning(source: obj) // filter on event source Warning(start: "Expected") // filter on start of message Warning(contains: "Expected") // filter on part of message
Remarks
Please note that filtering on the source being null does NOT work (passing null disables the source filter).
Top
Extension Methods
See Also