@dolittle/sdk.aggregates
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
17 lines • 864 B
TypeScript
import { Cancellation } from '@dolittle/sdk.resilience';
import { AggregateRoot } from './AggregateRoot';
import { AggregateRootAction } from './AggregateRootAction';
/**
* Defines a system for working with operations that can be formed on an {@link AggregateRoot}.
* @template TAggregate {@link AggregateRoot} Type.
*/
export declare abstract class IAggregateRootOperations<TAggregate extends AggregateRoot> {
/**
* Perform an operation on an {@link AggregateRoot}.
* @param {AggregateRootAction<TAggregate>} action - Callback for working with the aggregate root.
* @param {Cancellation} [cancellation] - The optional cancellation token.
* @returns {Promise<void>}
*/
abstract perform(action: AggregateRootAction<TAggregate>, cancellation?: Cancellation): Promise<void>;
}
//# sourceMappingURL=IAggregateRootOperations.d.ts.map