Exemplo n.º 1
0
 protected EventFilterTestBase(string config)
     : base(@"akka.loggers = [""" + typeof(ForwardAllEventsTestEventListener).AssemblyQualifiedName + @"""], " + (string.IsNullOrEmpty(config) ? "" : config))
 {
     //We send a ForwardAllEventsTo containing message to the TestEventListenerToForwarder logger (configured as a logger above).
     //It should respond with an "OK" message when it has received the message.
     var initLoggerMessage = new ForwardAllEventsTestEventListener.ForwardAllEventsTo(TestActor);
     // ReSharper disable once DoNotCallOverridableMethodsInConstructor
     SendRawLogEventMessage(initLoggerMessage);
     ExpectMsg("OK");
     //From now on we know that all messages will be forwarded to TestActor
 }
Exemplo n.º 2
0
        protected EventFilterTestBase(string config)
            : base(@"akka.loggers = [""" + typeof(ForwardAllEventsTestEventListener).AssemblyQualifiedName + @"""], " + (string.IsNullOrEmpty(config) ? "" : config))
        {
            //We send a ForwardAllEventsTo containing message to the TestEventListenerToForwarder logger (configured as a logger above).
            //It should respond with an "OK" message when it has received the message.
            var initLoggerMessage = new ForwardAllEventsTestEventListener.ForwardAllEventsTo(TestActor);

            // ReSharper disable once DoNotCallOverridableMethodsInConstructor
            SendRawLogEventMessage(initLoggerMessage);
            ExpectMsg("OK");
            //From now on we know that all messsages will be forwarded to TestActor
        }