Changeset 741
- Timestamp:
- 11/13/08 15:14:04 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 added
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Core/HeuristicLab.Hive.Server.Core.csproj
r713 r741 48 48 </ItemGroup> 49 49 <ItemGroup> 50 <Compile Include="ClientCommunicator.cs" /> 50 51 <Compile Include="HiveServerCorePlugin.cs" /> 51 52 <Compile Include="Properties\AssemblyInfo.cs" /> … … 56 57 </ItemGroup> 57 58 <ItemGroup> 59 <ProjectReference Include="..\HeuristicLab.Hive.Server\HeuristicLab.Hive.Server.csproj"> 60 <Project>{A04AE929-D0E1-466D-A9D3-BF3C4B2C209F}</Project> 61 <Name>HeuristicLab.Hive.Server</Name> 62 </ProjectReference> 58 63 <ProjectReference Include="..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj"> 59 64 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project> -
trunk/sources/HeuristicLab.Hive.Server/BusinessObjects/Client.cs
r738 r741 24 24 using System.Linq; 25 25 using System.Text; 26 using System.Runtime.Serialization; 26 27 27 28 namespace HeuristicLab.Hive.Server.BusinessObjects { 28 class Client { 29 [DataContract] 30 public class Client { 31 [DataMember] 29 32 public Guid ClientId { get; set; } 30 33 } -
trunk/sources/HeuristicLab.Hive.Server/HeuristicLab.Hive.Server.csproj
r713 r741 40 40 <RequiredTargetFramework>3.5</RequiredTargetFramework> 41 41 </Reference> 42 <Reference Include="System.Runtime.Serialization"> 43 <RequiredTargetFramework>3.0</RequiredTargetFramework> 44 </Reference> 45 <Reference Include="System.ServiceModel"> 46 <RequiredTargetFramework>3.0</RequiredTargetFramework> 47 </Reference> 42 48 <Reference Include="System.Xml.Linq"> 43 49 <RequiredTargetFramework>3.5</RequiredTargetFramework> … … 53 59 </ItemGroup> 54 60 <ItemGroup> 61 <Compile Include="BusinessObjects\Client.cs" /> 62 <Compile Include="Interfaces\IClientCommunicator.cs" /> 63 <Compile Include="Response.cs" /> 55 64 <Compile Include="Properties\AssemblyInfo.cs" /> 56 65 <Compile Include="HiveServerPlugin.cs" /> … … 92 101 </ProjectReference> 93 102 </ItemGroup> 94 <ItemGroup>95 <Folder Include="Interfaces\" />96 </ItemGroup>97 103 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 98 104 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
trunk/sources/HeuristicLab.Hive.Server/HiveServerApplication.cs
r713 r741 25 25 using System.Windows.Forms; 26 26 using HeuristicLab.PluginInfrastructure; 27 using System.ServiceModel; 28 using HeuristicLab.Hive.Server.Interfaces; 27 29 28 30 namespace HeuristicLab.Hive.Server { … … 31 33 AutoRestart = true)] 32 34 class HiveServerApplication : ApplicationBase { 35 36 private bool Startup() { 37 return true; 38 } 39 33 40 public override void Run() { 34 Form mainForm = new MainForm(); 35 Application.Run(mainForm); 41 42 DiscoveryService discService = 43 new DiscoveryService(); 44 45 IClientCommunicator[] instances = 46 discService.GetInstances<IClientCommunicator>(); 47 48 if (instances.Length > 0) { 49 ServiceHost serviceHost = 50 new ServiceHost(instances[0].GetType()); 51 52 serviceHost.Open(); 53 54 Form mainForm = new MainForm(serviceHost.BaseAddresses[0]); 55 Application.Run(mainForm); 56 57 serviceHost.Close(); 58 } else { 59 MessageBox.Show("Error - no ClientCommunicator instance"); 60 } 36 61 } 37 62 } -
trunk/sources/HeuristicLab.Hive.Server/Interfaces/IClientCommunicator.cs
r738 r741 32 32 /// </summary> 33 33 [ServiceContract] 34 interface IClientCommunicator {34 public interface IClientCommunicator { 35 35 [OperationContract] 36 36 Response Login(Client clientInfo); -
trunk/sources/HeuristicLab.Hive.Server/MainForm.Designer.cs
r713 r741 29 29 private void InitializeComponent() 30 30 { 31 this.label1 = new System.Windows.Forms.Label(); 32 this.lblAddress = new System.Windows.Forms.Label(); 31 33 this.SuspendLayout(); 34 // 35 // label1 36 // 37 this.label1.AutoSize = true; 38 this.label1.Location = new System.Drawing.Point(18, 18); 39 this.label1.Name = "label1"; 40 this.label1.Size = new System.Drawing.Size(113, 13); 41 this.label1.TabIndex = 0; 42 this.label1.Text = "Hive server running @"; 43 // 44 // lblAddress 45 // 46 this.lblAddress.AutoSize = true; 47 this.lblAddress.Location = new System.Drawing.Point(18, 43); 48 this.lblAddress.Name = "lblAddress"; 49 this.lblAddress.Size = new System.Drawing.Size(44, 13); 50 this.lblAddress.TabIndex = 1; 51 this.lblAddress.Text = "address"; 32 52 // 33 53 // MainForm … … 35 55 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 36 56 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 37 this.ClientSize = new System.Drawing.Size(292, 273); 57 this.ClientSize = new System.Drawing.Size(304, 78); 58 this.Controls.Add(this.lblAddress); 59 this.Controls.Add(this.label1); 38 60 this.Name = "MainForm"; 39 61 this.Text = "Hive Server Console"; 40 62 this.ResumeLayout(false); 63 this.PerformLayout(); 41 64 42 65 } 43 66 44 67 #endregion 68 69 private System.Windows.Forms.Label label1; 70 private System.Windows.Forms.Label lblAddress; 45 71 } 46 72 } -
trunk/sources/HeuristicLab.Hive.Server/MainForm.cs
r713 r741 10 10 namespace HeuristicLab.Hive.Server 11 11 { 12 public partial class MainForm : Form 13 {14 public MainForm()15 {16 InitializeComponent();12 public partial class MainForm : Form { 13 public MainForm(Uri address) { 14 InitializeComponent(); 15 if(address != null) 16 this.lblAddress.Text = address.ToString(); 17 17 } 18 18 }
Note: See TracChangeset
for help on using the changeset viewer.