1 // -----------------------------------------------------------------------
2 // <copyright file="ShellStatusChecker.cs" company="Microsoft">
3 // TODO: Update copyright text.
5 // -----------------------------------------------------------------------
7 using System.ComponentModel.Composition;
8 using System.ServiceModel;
10 using Pithos.Interfaces;
12 namespace Pithos.ShellExtensions
15 using System.Collections.Generic;
20 /// TODO: Update summary.
22 [Export(typeof(IStatusChecker))]
23 public class ShellStatusChecker:IStatusChecker
26 public IPithosSettings Settings { get; set; }
28 private static readonly log4net.ILog Log = log4net.LogManager.GetLogger("Pithos.ShellStatusChecker");
30 public FileOverlayStatus GetFileOverlayStatus(string path)
35 using (var client = PithosHost.GetStatusClient())
37 var status = client.GetStatus(path);
43 Log.ErrorFormat("[ERROR] retrieving overlay status for {0}:\r{1}",path,exc);
44 return FileOverlayStatus.Unversioned;
48 //Not Used by the shell extensions
49 public PithosStatus GetPithosStatus()
51 throw new NotSupportedException();