Esempio n. 1
0
        public void ProcessSessionAsImport(string sessionId, NewBookImportContract request)
        {
            try
            {
                var requestTimeout = new TimeSpan(0, 10, 0); // Import is long running operation
                m_client.Post <object>($"ProjectImportSession/{sessionId}", request, requestTimeout);
            }
            catch (HttpRequestException e)
            {
                if (m_logger.IsErrorEnabled())
                {
                    m_logger.LogError("{0} failed with {1}", m_client.GetCurrentMethod(), e);
                }

                throw;
            }
        }
 public void ProcessSessionAsImport(string sessionId, [FromBody] NewBookImportContract info)
 {
     m_resourceManager.ProcessSessionAsImport(sessionId, info.ProjectId, info.Comment);
 }