Project Name File Name Usage Source Code Link
Naz.Hastane App.cs Parallel.ForEach(items.Cast(), (table, loopState) => { if(worker != null && worker.CancellationPending && !loopState.IsStopped) { loopState.Stop(); loopState.Break(); Thread.Sleep(1000); } table.Columns = metadataReader.GetTableDetails(table, ownersComboBox.SelectedItem.ToString()); Generate(table, true); })
Link To Source File
HttpRules UriMatchList.cs Parallel.ForEach(this._exceptionPatterns, (p, state) => { if (p.Match(properties) == UriPatternMatchType.Exception) { state.Stop(); output = p; result = UriPatternMatchType.Exception; } }) Link To Source File
HttpRules UriMatchList.cs Parallel.ForEach(this._matchPatterns, (p, state) => { if (p.Match(properties) == UriPatternMatchType.Match) { state.Stop(); output = p; result = UriPatternMatchType.Match; } }) Link To Source File
DynamicScript ParallelSearch.cs Parallel.ForEach(elements ?? Enumerable.Empty(), Match) Link To Source File

© LearnParallelism.NET - 2012