projects
/
pithos-ms-client
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added Permissions, Tags
[pithos-ms-client]
/
trunk
/
Pithos.Core
/
StatusService.cs
diff --git
a/trunk/Pithos.Core/StatusService.cs
b/trunk/Pithos.Core/StatusService.cs
index
d489f01
..
243e993
100644
(file)
--- a/
trunk/Pithos.Core/StatusService.cs
+++ b/
trunk/Pithos.Core/StatusService.cs
@@
-4,6
+4,7
@@
// </copyright>
// -----------------------------------------------------------------------
// </copyright>
// -----------------------------------------------------------------------
+
using Caliburn.Micro;
namespace Pithos.Core
using Caliburn.Micro;
namespace Pithos.Core
@@
-21,25
+22,43
@@
namespace Pithos.Core
/// </summary>
[ServiceBehavior(IncludeExceptionDetailInFaults = true)]
[Export]
/// </summary>
[ServiceBehavior(IncludeExceptionDetailInFaults = true)]
[Export]
- public class StatusService : IStatusService
+ public class StatusService : IStatusService,ISettingsService
{
{
- private IStatusChecker _checker { get; set; }
+ [Import]
+ public IPithosSettings Settings { get; set; }
+
+ [Import]
+ public IStatusChecker Checker { get; set; }
+
+ [Import]
+ public PithosMonitor Monitor { get; set; }
public StatusService()
{
public StatusService()
{
- _checker=IoC.Get<IStatusChecker>();
+ IoC.BuildUp(this);
}
[ImportingConstructor]
public StatusService(IStatusChecker checker)
{
}
[ImportingConstructor]
public StatusService(IStatusChecker checker)
{
- _checker = checker;
+ Checker = checker;
}
public FileOverlayStatus GetStatus(string filePath)
{
}
public FileOverlayStatus GetStatus(string filePath)
{
- return _checker.GetFileOverlayStatus(filePath);
+ return Checker.GetFileOverlayStatus(filePath);
+ }
+
+ public void DisplayProperties(string filePath)
+ {
+ //Monitor.
+ }
+
+ public PithosSettingsData GetSettings()
+ {
+ var data = new PithosSettingsData(Settings);
+ return data;
}
}
}
}
}
}