예제 #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);
예제 #2
0
 public FakeAggregateWithEnactCommandConvention(ConstructorCommand <FakeAggregateWithEnactCommandConvention> createCommand) : base(createCommand)
 {
 }
예제 #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)
 {
 }
예제 #4
0
 public EventSourcedCommandTarget(ConstructorCommand <EventSourcedCommandTarget> createCommand) : base(createCommand)
 {
 }