1 // -----------------------------------------------------------------------
2 // <copyright file="ShellStatusChecker.cs" company="Microsoft">
3 // TODO: Update copyright text.
5 // -----------------------------------------------------------------------
7 using System.ComponentModel.Composition;
8 using System.Diagnostics;
9 using System.ServiceModel;
10 using Microsoft.Win32;
11 using Pithos.Interfaces;
13 namespace Pithos.ShellExtensions
16 using System.Collections.Generic;
21 /// TODO: Update summary.
23 [Export(typeof(IStatusChecker))]
24 public class ShellStatusChecker:IStatusChecker
27 public IPithosSettings Settings { get; set; }
29 public FileOverlayStatus GetFileOverlayStatus(string path)
34 using (var client = PithosHost.GetStatusClient())
36 var status = client.GetStatus(path);
42 Trace.TraceError("[ERROR] retrieving overlay status for {0}:\r{1}",path,exc);
43 return FileOverlayStatus.Unversioned;
47 //Not Used by the shell extensions
48 public PithosStatus GetPithosStatus()
50 throw new NotSupportedException();