- Timestamp:
- 12/04/08 17:28:52 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Core/ServiceLocator.cs
r899 r910 32 32 private static IClientAdapter clientAdapter = null; 33 33 34 private static IClientGroupAdapter clientGroupAdapter = null; 35 34 36 private static IUserAdapter userAdapter = null; 37 38 private static IUserGroupAdapter userGroupAdapter = null; 35 39 36 40 /// <summary> … … 47 51 48 52 /// <summary> 53 /// Gets the client group database adapter 54 /// </summary> 55 /// <returns></returns> 56 internal static IClientGroupAdapter GetClientGroupAdapter() { 57 if (clientGroupAdapter == null) { 58 clientGroupAdapter = discoveryService.GetInstances<IClientGroupAdapter>()[0]; 59 } 60 61 return clientGroupAdapter; 62 } 63 64 /// <summary> 49 65 /// Gets the user database adapter 50 66 /// </summary> … … 57 73 return userAdapter; 58 74 } 75 76 /// <summary> 77 /// Gets the user group database adapter 78 /// </summary> 79 /// <returns></returns> 80 internal static IUserGroupAdapter GetUserGroupAdapter() { 81 if (userGroupAdapter == null) { 82 userGroupAdapter = discoveryService.GetInstances<IUserGroupAdapter>()[0]; 83 } 84 85 return userGroupAdapter; 86 } 59 87 }
Note: See TracChangeset
for help on using the changeset viewer.