예제 #1
0
 public void Invoke_PerSessionInstanceReentrantConcurrency_CanHandleMultipleThreads()
 {
     using (StartService <IPerSessionInstanceAndReentrantConcurrency>())
     {
         ParallelInvoker.Invoke(50, () => Invoke <IPerSessionInstanceAndReentrantConcurrency, int>(c => c.Execute()));
     }
 }
예제 #2
0
 public void Invoke_SingleInstanceMultipleConcurrency_CanHandleMultipleThreads()
 {
     using (StartService <ISingleInstanceAndMultipleConcurrency>())
     {
         ParallelInvoker.Invoke(50, () => Invoke <ISingleInstanceAndMultipleConcurrency, int>(c => c.Execute()));
     }
 }