Statistics
| Branch: | Revision:

root / trunk / Pithos.Core / StatusService.cs @ e6faf02b

History | View | Annotate | Download (1.5 kB)

1
// -----------------------------------------------------------------------
2
// <copyright file="StatusService.cs" company="Microsoft">
3
// TODO: Update copyright text.
4
// </copyright>
5
// -----------------------------------------------------------------------
6

    
7

    
8
using Caliburn.Micro;
9

    
10
namespace Pithos.Core
11
{
12
    using System;
13
    using System.Collections.Generic;
14
    using System.Linq;
15
    using System.Text;
16
    using System.ServiceModel;
17
    using System.ComponentModel.Composition;
18
    using Pithos.Interfaces;
19

    
20
    /// <summary>
21
    /// TODO: Update summary.
22
    /// </summary>
23
    [ServiceBehavior(IncludeExceptionDetailInFaults = true)]
24
    [Export]
25
    public class StatusService : IStatusService,ISettingsService
26
    {
27
        [Import]
28
        public IPithosSettings Settings { get; set; }
29

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

    
33
        [Import]
34
        public PithosMonitor Monitor { get; set; }
35

    
36
        public StatusService()
37
        {
38
            IoC.BuildUp(this);
39
        }
40

    
41
        [ImportingConstructor]
42
        public StatusService(IStatusChecker checker)
43
        {
44
            Checker = checker;
45
        }
46

    
47

    
48
        public FileOverlayStatus GetStatus(string filePath)
49
        {
50
            return Checker.GetFileOverlayStatus(filePath);
51
        }
52

    
53
        public void DisplayProperties(string filePath)
54
        {
55
            //Monitor.
56
        }
57

    
58
        public PithosSettingsData GetSettings()
59
        {
60
            var data = new PithosSettingsData(Settings);
61
            return data;
62
        }
63
    }
64
}