Click or drag to resize
Akka.NETIEventFilterApplier Interface
TBD

Namespace:  Akka.TestKit
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public interface IEventFilterApplier

The IEventFilterApplier type exposes the following members.

Properties
  NameDescription
Public propertyAnd
Let's you chain more filters together. Similar to Akka JVM's filterEvents
Top
Methods
  NameDescription
Public methodExpect(Int32, Action)
Executes action and expects the specified number of events to be logged during the execution. This method fails and throws an exception if more events than expected are logged, or if a timeout occurs. The timeout is taken from the config value "akka.test.filter-leeway", see TestEventFilterLeeway.
Public methodExpect(Int32, TimeSpan, Action)
Executes action and expects the specified number of events to be logged during the execution. This method fails and throws an exception if more events than expected are logged, or if a timeout occurs. The timeout is taken from the config value "akka.test.filter-leeway", see TestEventFilterLeeway.
Public methodExpectT(Int32, FuncT)
Executes func and expects the specified number of events to be logged during the execution. This function fails and throws an exception if more events than expected are logged, or if a timeout occurs. The timeout is taken from the config value "akka.test.filter-leeway", see TestEventFilterLeeway.
Public methodExpectT(Int32, TimeSpan, FuncT)
Executes func and expects the specified number of events to be logged during the execution. This function fails and throws an exception if more events than expected are logged, or if a timeout occurs. The timeout is taken from the config value "akka.test.filter-leeway", see TestEventFilterLeeway.
Public methodExpectOne(Action)
Executes action and expects one event to be logged during the execution. This method fails and throws an exception if more than one event is logged, or if a timeout occurs. The timeout is taken from the config value "akka.test.filter-leeway", see TestEventFilterLeeway.
Public methodExpectOne(TimeSpan, Action)
Executes action and expects one event to be logged during the execution. This method fails and throws an exception if more than one event is logged, or if a timeout occurs.
Public methodExpectOneT(FuncT)
Executes func and expects one event to be logged during the execution. This function fails and throws an exception if more than one event is logged, or if a timeout occurs. The timeout is taken from the config value "akka.test.filter-leeway", see TestEventFilterLeeway.
Public methodExpectOneT(TimeSpan, FuncT)
Executes func and expects one event to be logged during the execution. This function fails and throws an exception if more than one event is logged, or if a timeout occurs.
Public methodCode exampleMute
Prevents events from being logged from now on. To allow events to be logged again, call Unmute on the returned object.
Examples
var filter = EventFilter.Debug().Mute();
...
filter.Unmute();
You may also use it like this:
Examples
using(EventFilter.Debug().Mute())
{
   ...
}
Public methodMute(Action)
Executes action and prevent events from being logged during the execution.
Public methodMuteT(FuncT)
Executes func and prevent events from being logged during the execution.
Top
See Also