Пример #1
0
        public ChildActor()
        {
            Receive<Message>(msg =>
            {
                messageBusinessLogic = new MessageBusinessLogic();

                messageBusinessLogic.AddTodo(msg.Data);

                Console.WriteLine("Child Actr path " + Self.Path);
                Console.WriteLine(msg.Data);
                // INSERT TO A DATABASE OR SEND AN EMAIL
            });
        }
        public MessageChildActor()
        {
            Receive<Message>(msg =>
            {
                Console.WriteLine("this is being inserted to the database beofre " + Self.Path);
                messageBusinessLogic = new MessageBusinessLogic();

                messageBusinessLogic.AddTodo(msg.Data);

                Console.WriteLine("this is being inserted to the database " + Self.Path);
                Console.WriteLine(msg.Data);
            });
        }