Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/01/08 16:40:27 (16 years ago)
Author:
gkronber
Message:

worked on ticket #187. code is a mess. work-in-progress.

Location:
trunk/sources/HeuristicLab.CEDMA.Server
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Server/HeuristicLab.CEDMA.Server.csproj

    r352 r357  
    3838      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    3939    </Reference>
     40    <Reference Include="System.Data.Linq">
     41      <RequiredTargetFramework>3.5</RequiredTargetFramework>
     42    </Reference>
    4043    <Reference Include="System.Drawing" />
    4144    <Reference Include="System.Runtime.Serialization">
     
    5659  </ItemGroup>
    5760  <ItemGroup>
    58     <Compile Include="AgentWorld.cs" />
    59     <Compile Include="IAgentWorld.cs" />
    6061    <Compile Include="ServerApplication.cs" />
    6162    <Compile Include="HeuristicLabCedmaServerPlugin.cs" />
     
    6970  </ItemGroup>
    7071  <ItemGroup>
     72    <ProjectReference Include="..\HeuristicLab.CEDMA.DB.Interfaces\HeuristicLab.CEDMA.DB.Interfaces.csproj">
     73      <Project>{4F9BB789-D561-436B-B226-2BF44B7D0804}</Project>
     74      <Name>HeuristicLab.CEDMA.DB.Interfaces</Name>
     75    </ProjectReference>
     76    <ProjectReference Include="..\HeuristicLab.CEDMA.DB\HeuristicLab.CEDMA.DB.csproj">
     77      <Project>{B3D6D8D9-2B1F-47EC-9C73-77FAECF87310}</Project>
     78      <Name>HeuristicLab.CEDMA.DB</Name>
     79    </ProjectReference>
    7180    <ProjectReference Include="..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj">
    7281      <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>
  • trunk/sources/HeuristicLab.CEDMA.Server/ServerForm.cs

    r352 r357  
    3232using HeuristicLab.PluginInfrastructure;
    3333using System.Net;
     34using HeuristicLab.CEDMA.DB;
     35using HeuristicLab.CEDMA.DB.Interfaces;
    3436
    3537namespace HeuristicLab.CEDMA.Server {
    3638  public partial class ServerForm : Form {
    3739    private ServiceHost host;
    38     private AgentWorld agentWorld = new AgentWorld();
     40    private Database database = new Database();
    3941
    4042    public ServerForm() {
     
    5153
    5254    private void Start() {
    53       host = new ServiceHost(agentWorld, new Uri(addressTextBox.Text));
     55      host = new ServiceHost(database, new Uri(addressTextBox.Text));
    5456      ServiceThrottlingBehavior throttlingBehavior = new ServiceThrottlingBehavior();
    5557      throttlingBehavior.MaxConcurrentSessions = 20;
     
    6264        binding.Security.Mode = SecurityMode.None;
    6365
    64         host.AddServiceEndpoint(typeof(IAgentWorld), binding, addressTextBox.Text);
     66        host.AddServiceEndpoint(typeof(IDatabase), binding, addressTextBox.Text);
    6567        host.Open();
    6668      } catch (CommunicationException ex) {
     
    7173
    7274    private void statusUpdateTimer_Tick(object sender, EventArgs e) {
    73       activeAgentsTextBox.Text = agentWorld.ActiveAgents.ToString();
    7475    }
    7576  }
Note: See TracChangeset for help on using the changeset viewer.