Revision b5061ac8 trunk/Pithos.ShellExtensions/ShellStatusChecker.cs
b/trunk/Pithos.ShellExtensions/ShellStatusChecker.cs | ||
---|---|---|
7 | 7 |
using System.ComponentModel.Composition; |
8 | 8 |
using System.Diagnostics; |
9 | 9 |
using System.ServiceModel; |
10 |
using Microsoft.Win32; |
|
10 | 11 |
using Pithos.Interfaces; |
11 | 12 |
|
12 | 13 |
namespace Pithos.ShellExtensions |
... | ... | |
30 | 31 |
|
31 | 32 |
try |
32 | 33 |
{ |
33 |
var binding = new NetNamedPipeBinding(NetNamedPipeSecurityMode.None); |
|
34 |
|
|
35 |
var remoteAddress = new EndpointAddress("net.pipe://localhost/pithos/statuscache"); |
|
36 |
using (var client = new PithosService.StatusServiceClient(binding, remoteAddress)) |
|
34 |
using (var client = PithosHost.GetStatusClient()) |
|
37 | 35 |
{ |
38 | 36 |
var status = client.GetStatus(path); |
39 | 37 |
return status; |
... | ... | |
42 | 40 |
catch (Exception exc) |
43 | 41 |
{ |
44 | 42 |
Trace.TraceError(exc.ToString()); |
45 |
return FileOverlayStatus.NA;
|
|
43 |
return FileOverlayStatus.Unversioned;
|
|
46 | 44 |
} |
47 | 45 |
} |
48 | 46 |
|
Also available in: Unified diff