Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/04/10 18:55:46 (14 years ago)
Author:
gkronber
Message:

Fixed projects to work with new plugin infrastructure. #799

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PluginInfrastructure Refactoring/HeuristicLab.DataAccess.ADOHelper/3.2/Session.cs

    r2123 r2587  
    3131namespace HeuristicLab.DataAccess.ADOHelper {
    3232  public class Session: ISession {
    33     private static DiscoveryService discoveryService =
    34       new DiscoveryService();
    35 
    3633    private SessionFactory factory;
    3734
     
    115112      if (!adapters.ContainsKey(adapterId)) {
    116113        IDataAdapter<ObjT> adapter =
    117           discoveryService.GetInstances<IDataAdapter<ObjT>>()[0];
     114          ApplicationManager.Manager.GetInstances<IDataAdapter<ObjT>>().First();
    118115
    119116        adapter.Session = this;
     
    135132      if (!adapters.ContainsKey(adapterId)) {
    136133        T adapter =
    137           discoveryService.GetInstances<T>()[0];
     134          ApplicationManager.Manager.GetInstances<T>().First();
    138135
    139136        adapter.Session = this;
Note: See TracChangeset for help on using the changeset viewer.