public void ShouldDeliverConfirmableMessagesToChildWithoutExplicitDecorators() { Func <IActorRef, Props> ackActorProps = i => Props.Create(() => new AckActor(i, TestActor, "fuber", true)); var ps = Sys.ActorOf(PersistenceSupervisor.PropsFor(ackActorProps, "test")); var confirmable = new ConfirmableMessage <int>(1, 1000, "t"); ps.Tell(confirmable); // make sure the confirmation ID we provided isn't replaced by anything the PersistenceSupervisor does var c = ExpectMsg <Confirmation>(); c.ConfirmationId.Should().Be(confirmable.ConfirmationId); }
public static Props PersistenceSupervisorFor(Func <object, bool> isEvent, Props childProps, string childName) { return(PersistenceSupervisor.PropsFor(ToConfirmableMessage, isEvent, childProps, childName, new ManualReset())); }
public static Props PropsFor(string tickerSymbol) { return(PersistenceSupervisor.PropsFor((o, l) => new ConfirmableMessageEnvelope(l, tickerSymbol, l), o => o is Bid || o is Ask, Props.Create(() => new OrderBookActor(tickerSymbol)), "orders")); }