using System;

namespace Microsoft.Its.Domain
{
    /// <summary>
    /// Represents that a command has been scheduled for future execution against a specific aggregate type.
    /// </summary>
    public interface IScheduledCommand<in TAggregate> :
        IEvent<TAggregate>,
        IScheduledCommand
        where TAggregate : IEventSourced
    {
        /// <summary>
        /// Gets the command to be applied at a later time.
        /// </summary>
        ICommand<TAggregate> Command { get; }
    }
}
