Ejemplo n.º 1
0
 public Pool(string name, IIdentifyGenerator identityGenerator, IMessageBroker messageBroker)
 {
     _entities         = new List <IEntity>();
     Name              = name;
     IdentityGenerator = identityGenerator;
     MessageBroker     = messageBroker;
 }
Ejemplo n.º 2
0
 public PoolManager(IIdentifyGenerator identityGenerator, IMessageBroker messageBroker)
 {
     IdentityGenerator = identityGenerator;
     MessageBroker     = messageBroker;
     _groupAccessors   = new Dictionary <GroupAccessorToken, IEnumerable <IEntity> >();
     _pools            = new Dictionary <string, IPool>();
     CreatePool(DefaultPoolName);
 }