/// <summary> /// Initializes a new instance of the <see cref="StateStrategy<TEntity, TId>"/> class. /// </summary> /// <param name="factory">The factory.</param> protected StateStrategy(IAggregateFactory <TEntity, TId> factory) : this(factory, (IRefuseEngine <TEntity, TId>)RefuseEngineFactory.DefaultRefuseEngine <TEntity, TId>()) { }
/// <summary> /// Initializes a new instance of the <see cref="StateStrategy<TEntity, TId>"/> class. /// </summary> /// <param name="factory">The factory.</param> /// <param name="maxEvents">The max events.</param> protected StateStrategy(IAggregateFactory <TEntity, TId> factory, int maxEvents) : this(factory, RefuseEngineFactory.DefaultRefuseEngine <TEntity, TId>(), maxEvents) { }
public ShipStateStrategy(IAggregateFactory <Ship, ObjectId> factory) : base(factory, RefuseEngineFactory.DefaultRefuseEngine <Ship, ObjectId>()) { }