Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/29/08 18:05:18 (16 years ago)
Author:
gkronber
Message:
  • fixed ticket #201 (Fix plugin dependencies for CEDMA plugins)
  • deleted classes DbPersistenceManager because the common code was moved to the PersistenceManager in HeuristicLab.Core.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Operators/OnGridProcessor.cs

    r398 r403  
    2828using HeuristicLab.CEDMA.DB.Interfaces;
    2929using System.ServiceModel;
    30 using HeuristicLab.CEDMA.Core;
    3130
    3231namespace HeuristicLab.CEDMA.Operators {
     
    4847      long agentId = scope.GetVariableValue<IntData>("AgentId", true).Data;
    4948
    50       Agent agent = new Agent();
    51       foreach(IOperator op in operatorGraph.Operators) {
    52         agent.OperatorGraph.AddOperator(op);
    53       }
    54       agent.OperatorGraph.InitialOperator = operatorGraph.InitialOperator;
    55 
    5649      NetTcpBinding binding = new NetTcpBinding();
    5750      binding.MaxReceivedMessageSize = 10000000; // 10Mbytes
     
    6154      using(ChannelFactory<IDatabase> factory = new ChannelFactory<IDatabase>(binding)) {
    6255        IDatabase database = factory.CreateChannel(new EndpointAddress(serverUrl));
    63         long id = database.InsertAgent(agentId, null, DbPersistenceManager.Save(agent));
     56        long id = database.InsertAgent(agentId, null, PersistenceManager.SaveToGZip(operatorGraph));
    6457        database.UpdateAgent(id, ProcessStatus.Waiting);
    6558      }
Note: See TracChangeset for help on using the changeset viewer.