Beispiel #1
0
 public static Task <IScheduledCommand <TTarget> > Schedule <TTarget>(
     ConstructorCommand <TTarget> command,
     DateTimeOffset?dueTime          = null,
     IPrecondition deliveryDependsOn = null,
     IClock clock = null)
     where TTarget : class =>
 Configuration
 .Current
 .CommandScheduler <TTarget>()
 .Schedule(
     command,
     dueTime,
     deliveryDependsOn,
     clock);
Beispiel #2
0
 public FakeAggregateWithEnactCommandConvention(ConstructorCommand <FakeAggregateWithEnactCommandConvention> createCommand) : base(createCommand)
 {
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Microsoft.Its.Domain.EventSourcedAggregate`1"/> class by applying the specified command.
 /// </summary>
 /// <param name="createCustomerAccount">The create command.</param>
 public CustomerAccount(ConstructorCommand <CustomerAccount> createCustomerAccount) : base(createCustomerAccount)
 {
 }
Beispiel #4
0
 public EventSourcedCommandTarget(ConstructorCommand <EventSourcedCommandTarget> createCommand) : base(createCommand)
 {
 }