Revision 5e31048f trunk/Pithos.Core.Test/MockStatusKeeper.cs
b/trunk/Pithos.Core.Test/MockStatusKeeper.cs | ||
---|---|---|
17 | 17 |
|
18 | 18 |
private readonly string[] _states = { "Normal", "Modified", "Conflict", "Synch" }; |
19 | 19 |
|
20 |
ConcurrentDictionary<string, FileOverlayStatus> _overlayCache = new ConcurrentDictionary<string, FileOverlayStatus>(); |
|
21 |
ConcurrentDictionary<string, FileStatus> _statusCache = new ConcurrentDictionary<string, FileStatus>(); |
|
22 |
ConcurrentDictionary<string, string> _checksums = new ConcurrentDictionary<string, string>(); |
|
20 |
readonly ConcurrentDictionary<string, FileOverlayStatus> _overlayCache = new ConcurrentDictionary<string, FileOverlayStatus>();
|
|
21 |
readonly ConcurrentDictionary<string, FileStatus> _statusCache = new ConcurrentDictionary<string, FileStatus>();
|
|
22 |
readonly ConcurrentDictionary<string, string> _checksums = new ConcurrentDictionary<string, string>();
|
|
23 | 23 |
|
24 | 24 |
public FileOverlayStatus GetFileOverlayStatus(string path) |
25 | 25 |
{ |
26 |
Contract.Requires(!String.IsNullOrWhiteSpace(path)); |
|
26 |
|
|
27 | 27 |
if (!_overlayCache.ContainsKey(path)) |
28 | 28 |
return FileOverlayStatus.Unversioned; |
29 | 29 |
|
Also available in: Unified diff