public void Resend(Guid idRequest) { CurrentLog = LogIntegrationBuilder.Get <TLog>(idRequest); if (CurrentLog != null) { var model = CurrentLog.GetRequest <TRequest>(); SendSync(model); } }
public void ResendAll() { if (!Config.Enabled) { return; } var pendents = GetPendents(); foreach (var log in pendents) { CurrentLog = LogIntegrationBuilder.Get <TLog>(log.Id); var model = CurrentLog.GetRequest <TRequest>(); SendSync(model); } }
protected virtual List <TLog> GetPendents() { return(LogIntegrationBuilder.ListPendents <TLog>(Attempts, TakePendents)); }