Beispiel #1
0
 protected internal virtual void InitRoutees(RouterSpecification <P> specification)
 {
     for (var i = 0; i < specification.InitialPoolSize; ++i)
     {
         var protocols = new Type[] { specification.RouterProtocol, typeof(IAddressable) };
         var two       = ChildActorFor(protocols, specification.RouterDefinition);
         Subscribe(Routee <P> .Of(two.Get <P>(0), two.Get <IAddressable>(1)));
     }
 }
 public void Unsubscribe(IInvoiceSubmitter submitter)
 => Unsubscribe(Routee <IInvoiceSubmitter> .Of(submitter));