Changeset 357 for trunk/sources/HeuristicLab.CEDMA.Server
- Timestamp:
- 07/01/08 16:40:27 (16 years ago)
- 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 38 38 <RequiredTargetFramework>3.5</RequiredTargetFramework> 39 39 </Reference> 40 <Reference Include="System.Data.Linq"> 41 <RequiredTargetFramework>3.5</RequiredTargetFramework> 42 </Reference> 40 43 <Reference Include="System.Drawing" /> 41 44 <Reference Include="System.Runtime.Serialization"> … … 56 59 </ItemGroup> 57 60 <ItemGroup> 58 <Compile Include="AgentWorld.cs" />59 <Compile Include="IAgentWorld.cs" />60 61 <Compile Include="ServerApplication.cs" /> 61 62 <Compile Include="HeuristicLabCedmaServerPlugin.cs" /> … … 69 70 </ItemGroup> 70 71 <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> 71 80 <ProjectReference Include="..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj"> 72 81 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project> -
trunk/sources/HeuristicLab.CEDMA.Server/ServerForm.cs
r352 r357 32 32 using HeuristicLab.PluginInfrastructure; 33 33 using System.Net; 34 using HeuristicLab.CEDMA.DB; 35 using HeuristicLab.CEDMA.DB.Interfaces; 34 36 35 37 namespace HeuristicLab.CEDMA.Server { 36 38 public partial class ServerForm : Form { 37 39 private ServiceHost host; 38 private AgentWorld agentWorld = new AgentWorld();40 private Database database = new Database(); 39 41 40 42 public ServerForm() { … … 51 53 52 54 private void Start() { 53 host = new ServiceHost( agentWorld, new Uri(addressTextBox.Text));55 host = new ServiceHost(database, new Uri(addressTextBox.Text)); 54 56 ServiceThrottlingBehavior throttlingBehavior = new ServiceThrottlingBehavior(); 55 57 throttlingBehavior.MaxConcurrentSessions = 20; … … 62 64 binding.Security.Mode = SecurityMode.None; 63 65 64 host.AddServiceEndpoint(typeof(I AgentWorld), binding, addressTextBox.Text);66 host.AddServiceEndpoint(typeof(IDatabase), binding, addressTextBox.Text); 65 67 host.Open(); 66 68 } catch (CommunicationException ex) { … … 71 73 72 74 private void statusUpdateTimer_Tick(object sender, EventArgs e) { 73 activeAgentsTextBox.Text = agentWorld.ActiveAgents.ToString();74 75 } 75 76 }
Note: See TracChangeset
for help on using the changeset viewer.