Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StateStrategy&lt;TEntity, TId&gt;"/> class.
 /// </summary>
 /// <param name="factory">The factory.</param>
 protected StateStrategy(IAggregateFactory <TEntity, TId> factory)
     : this(factory, (IRefuseEngine <TEntity, TId>)RefuseEngineFactory.DefaultRefuseEngine <TEntity, TId>())
 {
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StateStrategy&lt;TEntity, TId&gt;"/> 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)
 {
 }
Example #3
0
 public ShipStateStrategy(IAggregateFactory <Ship, ObjectId> factory)
     : base(factory, RefuseEngineFactory.DefaultRefuseEngine <Ship, ObjectId>())
 {
 }