Changeset 2587 for branches/PluginInfrastructure Refactoring/HeuristicLab.DataAccess.ADOHelper/3.2/Session.cs
- Timestamp:
- 01/04/10 18:55:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PluginInfrastructure Refactoring/HeuristicLab.DataAccess.ADOHelper/3.2/Session.cs
r2123 r2587 31 31 namespace HeuristicLab.DataAccess.ADOHelper { 32 32 public class Session: ISession { 33 private static DiscoveryService discoveryService =34 new DiscoveryService();35 36 33 private SessionFactory factory; 37 34 … … 115 112 if (!adapters.ContainsKey(adapterId)) { 116 113 IDataAdapter<ObjT> adapter = 117 discoveryService.GetInstances<IDataAdapter<ObjT>>()[0];114 ApplicationManager.Manager.GetInstances<IDataAdapter<ObjT>>().First(); 118 115 119 116 adapter.Session = this; … … 135 132 if (!adapters.ContainsKey(adapterId)) { 136 133 T adapter = 137 discoveryService.GetInstances<T>()[0];134 ApplicationManager.Manager.GetInstances<T>().First(); 138 135 139 136 adapter.Session = this;
Note: See TracChangeset
for help on using the changeset viewer.