コード例 #1
0
        void FastForward(ICommandContext commandContext, T aggregateRoot)
        {
            var identifier = _applicationResources.Identify(typeof(T));
            var version    = _eventSourceVersions.GetFor(identifier, aggregateRoot.EventSourceId);

            aggregateRoot.FastForward(version);
        }
コード例 #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);
        }