1 // -----------------------------------------------------------------------
2 // <copyright file="StatusService.cs" company="Microsoft">
3 // TODO: Update copyright text.
5 // -----------------------------------------------------------------------
9 using System.ServiceModel;
10 using System.ComponentModel.Composition;
12 using Pithos.Interfaces;
14 namespace Pithos.Client.WPF.Services
17 /// TODO: Update summary.
19 [ServiceBehavior(UseSynchronizationContext=false, IncludeExceptionDetailInFaults = true)]
21 public class StatusService : IStatusService,ISettingsService, ICommandsService
24 public IPithosSettings Settings { get; set; }
27 public IStatusChecker Checker { get; set; }
30 public PithosMonitor Monitor { get; set; }
32 public StatusService()
37 private IEventAggregator _events;
39 [ImportingConstructor]
40 public StatusService(IStatusChecker checker,IEventAggregator events)
47 public FileOverlayStatus GetStatus(string filePath)
49 return Checker.GetFileOverlayStatus(filePath);
52 public void DisplayProperties(string filePath)
57 public PithosSettingsData GetSettings()
59 var data = new PithosSettingsData(Settings);
63 public void ShowProperties(string fileName)
65 _events.Publish(new ShowFilePropertiesEvent(fileName));