summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/ServiceManager.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-08-15 19:23:58 +0000
committersr55 <[email protected]>2011-08-15 19:23:58 +0000
commit746186658150dcbca2721d6d6fea77b4d7c09467 (patch)
treeebf2f050abe5418dbf4acf6cb1602815eb786d49 /win/CS/HandBrake.ApplicationServices/ServiceManager.cs
parent774af7004dd17c59fee9606273cd52a24867eb98 (diff)
WinGui: Add a service manager to maintain single instances of services & update the user settings service to import defaults from an xml file.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4177 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/ServiceManager.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/ServiceManager.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/ServiceManager.cs b/win/CS/HandBrake.ApplicationServices/ServiceManager.cs
new file mode 100644
index 000000000..06b4422e2
--- /dev/null
+++ b/win/CS/HandBrake.ApplicationServices/ServiceManager.cs
@@ -0,0 +1,27 @@
+namespace HandBrake.ApplicationServices
+{
+ using HandBrake.ApplicationServices.Services;
+ using HandBrake.ApplicationServices.Services.Interfaces;
+
+ /// <summary>
+ /// Tempory Class which manages services until Windosor is added back into the project to handle it for us.
+ /// </summary>
+ public class ServiceManager
+ {
+ /// <summary>
+ /// Backing Field for the User Setting Service.
+ /// </summary>
+ private static IUserSettingService userSettingService;
+
+ /// <summary>
+ /// Gets UserSettingService.
+ /// </summary>
+ public static IUserSettingService UserSettingService
+ {
+ get
+ {
+ return userSettingService ?? (userSettingService = new UserSettingService());
+ }
+ }
+ }
+}