From 746186658150dcbca2721d6d6fea77b4d7c09467 Mon Sep 17 00:00:00 2001 From: sr55 Date: Mon, 15 Aug 2011 19:23:58 +0000 Subject: 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 --- .../ServiceManager.cs | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 win/CS/HandBrake.ApplicationServices/ServiceManager.cs (limited to 'win/CS/HandBrake.ApplicationServices/ServiceManager.cs') 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; + + /// + /// Tempory Class which manages services until Windosor is added back into the project to handle it for us. + /// + public class ServiceManager + { + /// + /// Backing Field for the User Setting Service. + /// + private static IUserSettingService userSettingService; + + /// + /// Gets UserSettingService. + /// + public static IUserSettingService UserSettingService + { + get + { + return userSettingService ?? (userSettingService = new UserSettingService()); + } + } + } +} -- cgit v1.2.3