Ejemplo n.º 1
0
        void FastForward(ICommandContext commandContext, T aggregateRoot)
        {
            var identifier = _applicationResources.Identify(typeof(T));
            var version    = _eventSourceVersions.GetFor(identifier, aggregateRoot.EventSourceId);

            aggregateRoot.FastForward(version);
        }
Ejemplo n.º 2
0
        void FastForward(ICommandContext commandContext, T aggregateRoot)
        {
            _logger.Trace($"FastForward - {typeof(T).AssemblyQualifiedName}");
            var identifier = _applicationResources.Identify(typeof(T));

            _logger.Trace($"With identifier '{identifier?.ToString()??"<unknown identifier>"}'");

            var version = _eventSourceVersions.GetFor(identifier, aggregateRoot.EventSourceId);

            aggregateRoot.FastForward(version);
        }