Here are the examples of the csharp api class System.Collections.Concurrent.ConcurrentBag.Add(UiArchiveNode) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: Pulse
Source File: UiArchiveTreeBuilder.cs
Source File: UiArchiveTreeBuilder.cs
public UiArchives Build() { string[] lists = _gameLocation.EnumerateListingFiless().ToArray(); ConcurrentBag<UiArchiveNode> nodes = new ConcurrentBag<UiArchiveNode>(); Parallel.ForEach(lists, fileName => { ArchiveAccessor accessor = new ArchiveAccessor(GetBinaryFilePath(fileName), fileName); nodes.Add(new UiArchiveNode(accessor, null)); }); return new UiArchives(nodes.OrderBy(n=>n.Name).ToArray()); }