Example #1
0
 public Pool(string name, IIdentifyGenerator identityGenerator, IMessageBroker messageBroker)
 {
     _entities         = new List <IEntity>();
     Name              = name;
     IdentityGenerator = identityGenerator;
     MessageBroker     = messageBroker;
 }
Example #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);
 }