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