private void RetryCommand(EventStreamContext eventStreamContext, ErrorInfo errorInfo, ActionInfo successActionInfo) { if (!eventStreamContext.EventStream.IsRestoreFromStorage()) { var command = _processingCommandCache.Get(eventStreamContext.EventStream.CommandId); if (command != null) { _retryCommandService.RetryCommand(command, eventStreamContext.EventStream, errorInfo, successActionInfo); } else { _logger.ErrorFormat("The command need to retry cannot be found from command processing cache, commandId:{0}", eventStreamContext.EventStream.CommandId); } } else { _logger.InfoFormat("The command with id {0} will not be retry as the current event stream is restored from the message store.", eventStreamContext.EventStream.CommandId); } }