Пример #1
0
        public void Resend(Guid idRequest)
        {
            CurrentLog = LogIntegrationBuilder.Get <TLog>(idRequest);

            if (CurrentLog != null)
            {
                var model = CurrentLog.GetRequest <TRequest>();
                SendSync(model);
            }
        }
Пример #2
0
        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);
            }
        }
Пример #3
0
 protected virtual List <TLog> GetPendents()
 {
     return(LogIntegrationBuilder.ListPendents <TLog>(Attempts, TakePendents));
 }