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