Revision 5bcf6d70 trunk/Pithos.Core/StatusService.cs

b/trunk/Pithos.Core/StatusService.cs
21 21
    /// </summary>
22 22
    [ServiceBehavior(IncludeExceptionDetailInFaults = true)]
23 23
    [Export]
24
    public class StatusService : IStatusService
24
    public class StatusService : IStatusService,ISettingsService
25 25
    {
26
        private IStatusChecker _checker { get; set; }
26
        [Import]
27
        public IPithosSettings Settings { get; set; }
28

  
29
        [Import]
30
        public IStatusChecker Checker { get; set; }
27 31

  
28 32
        public StatusService()
29 33
        {
30
            _checker=IoC.Get<IStatusChecker>();
34
            IoC.BuildUp(this);
31 35
        }
32 36

  
33 37
        [ImportingConstructor]
34 38
        public StatusService(IStatusChecker checker)
35 39
        {
36
            _checker = checker;
40
            Checker = checker;
37 41
        }
38 42

  
39 43

  
40 44
        public FileOverlayStatus GetStatus(string filePath)
41 45
        {
42
            return _checker.GetFileOverlayStatus(filePath);
46
            return Checker.GetFileOverlayStatus(filePath);
47
        }
48

  
49
        public PithosSettingsData GetSettings()
50
        {
51
            var data = new PithosSettingsData(Settings);
52
            return data;
43 53
        }
44 54
    }
45 55
}

Also available in: Unified diff