Changeset 4721

Show
Ignore:
Timestamp:
06/16/08 15:37:50 (5 months ago)
Author:
xmlhacker
Message:

need to see if writing the output of each request/response is the cause of the timeout

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/nuxleus/Source/Nuxleus.Extension.Aws/Agent.cs

    r4718 r4721  
    4343            logger.Message = "Processing SOAP requests"; 
    4444 
    45  
    46             scope.Begin = () => { 
    47                  
     45            scope.Begin = () => {   
    4846                using (WorkerQueue q = new WorkerQueue(m_workers)) { 
    4947                    List<string> lines = new List<string>(); 
     
    7169                        } 
    7270                    } 
    73  
    7471                    if (operation.Count > 0) { 
    7572                        totalTasksEnqueued += operation.Count; 
     
    7774                        q.EnqueueTask(InvokeOperation<T>(operation)); 
    7875                    } 
    79  
    8076                    System.Console.WriteLine("Total Tasks Enqueued: {0}, Total Queues: {1}", totalTasksEnqueued, totalQueues); 
     77                    System.Console.WriteLine("Total Processing Time: {0}", profiler.EllapsedTime.Milliseconds); 
    8178                } 
    8279            }; 
     
    9491            } 
    9592            yield return Async.Parallel(processList); 
    96             int c = 1; 
    97             IEnumerator responseEnumerator = responseList.GetEnumerator(); 
    98             while (responseEnumerator.MoveNext()) { 
    99                 KeyValuePair<XElement, XElement> responseItem = (KeyValuePair<XElement, XElement>)responseEnumerator.Current; 
    100                 System.Console.WriteLine(".......................... Begin Message {0} ............................", c); 
    101                 System.Console.WriteLine("\n"); 
    102                 System.Console.WriteLine("[Message {0} Sent]", c); 
    103                 responseItem.Key.Save(System.Console.Out); 
    104                 System.Console.WriteLine("\n"); 
    105                 System.Console.WriteLine("[Message {0} Received]", c); 
    106                 responseItem.Value.Save(System.Console.Out); 
    107                 System.Console.WriteLine("\n"); 
    108                 System.Console.WriteLine(".......................... End Message {0} ............................", c); 
    109                 c++; 
    110            
     93            //int c = 1; 
     94            //IEnumerator responseEnumerator = responseList.GetEnumerator(); 
     95            //while (responseEnumerator.MoveNext()) { 
     96            //    KeyValuePair<XElement, XElement> responseItem = (KeyValuePair<XElement, XElement>)responseEnumerator.Current; 
     97            //    System.Console.WriteLine(".......................... Begin Message {0} ............................", c); 
     98            //    System.Console.WriteLine("\n"); 
     99            //    System.Console.WriteLine("[Message {0} Sent]", c); 
     100            //    responseItem.Key.Save(System.Console.Out); 
     101            //    System.Console.WriteLine("\n"); 
     102            //    System.Console.WriteLine("[Message {0} Received]", c); 
     103            //    responseItem.Value.Save(System.Console.Out); 
     104            //    System.Console.WriteLine("\n"); 
     105            //    System.Console.WriteLine(".......................... End Message {0} ............................", c); 
     106            //    c++; 
     107            //
    111108        } 
    112109