- Timestamp:
- 11/13/08 16:52:52 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 10 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/Client.cs
r746 r751 24 24 using System.Linq; 25 25 using System.Text; 26 27 namespace HeuristicLab.Hive.Server.BusinessObjects { 26 using System.Runtime.Serialization; 27 28 namespace HeuristicLab.Hive.Contracts.BusinessObjects { 28 29 29 30 public enum State { idle, calculating }; 30 31 31 public class Client { 32 [DataContract] 33 public class Client : Resource { 34 [DataMember] 32 35 public Guid ClientId { get; set; } 36 [DataMember] 33 37 public int NrOfCores { get; set; } 38 [DataMember] 34 39 public int Memory { get; set; } 40 [DataMember] 35 41 public DateTime Login { get; set; } 42 [DataMember] 36 43 public State State { get; set; } 37 44 [DataMember] 45 public ClientConfig Config { get; set; } 38 46 } 39 47 } -
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/ClientConfig.cs
r746 r751 24 24 using System.Linq; 25 25 using System.Text; 26 using System.Runtime.Serialization; 26 27 27 namespace HeuristicLab.Hive. Server.BusinessObjects {28 namespace HeuristicLab.Hive.Contracts.BusinessObjects { 28 29 29 class ClientConfig { 30 30 [DataContract] 31 public class ClientConfig { 32 [DataMember] 33 public String UpDownTimeCalendar { get; set; } // TODO define DataStructure 34 [DataMember] 35 public int HeartBeatIntervall { get; set; } 31 36 } 32 37 } -
trunk/sources/HeuristicLab.Hive.Contracts/HeuristicLab.Hive.Contracts.csproj
r744 r751 38 38 <RequiredTargetFramework>3.5</RequiredTargetFramework> 39 39 </Reference> 40 <Reference Include="System.Runtime.Serialization"> 41 <RequiredTargetFramework>3.0</RequiredTargetFramework> 42 </Reference> 43 <Reference Include="System.ServiceModel"> 44 <RequiredTargetFramework>3.0</RequiredTargetFramework> 45 </Reference> 40 46 <Reference Include="System.Xml.Linq"> 41 47 <RequiredTargetFramework>3.5</RequiredTargetFramework> … … 48 54 </ItemGroup> 49 55 <ItemGroup> 56 <Compile Include="BusinessObjects\GrantedPermissions.cs" /> 57 <Compile Include="BusinessObjects\ClientGroup.cs" /> 58 <Compile Include="BusinessObjects\Job.cs" /> 59 <Compile Include="BusinessObjects\JobResult.cs" /> 60 <Compile Include="BusinessObjects\Permission.cs" /> 61 <Compile Include="BusinessObjects\PermissionOwner.cs" /> 62 <Compile Include="BusinessObjects\Resource.cs" /> 63 <Compile Include="BusinessObjects\UpTimeStatistics.cs" /> 50 64 <Compile Include="BusinessObjects\Client.cs" /> 51 65 <Compile Include="BusinessObjects\ClientConfig.cs" /> 66 <Compile Include="BusinessObjects\User.cs" /> 67 <Compile Include="BusinessObjects\UserGroup.cs" /> 52 68 <Compile Include="HiveContractPlugin.cs" /> 53 69 <Compile Include="Interfaces\IClientCommunicator.cs" /> -
trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/IClientCommunicator.cs
r746 r751 24 24 using System.Linq; 25 25 using System.Text; 26 using HeuristicLab.Hive.Server.BusinessObjects; 26 using System.ServiceModel; 27 using HeuristicLab.Hive.Contracts.BusinessObjects; 27 28 28 29 namespace HeuristicLab.Hive.Server.Interfaces { … … 30 31 /// This is the facade for the client communication 31 32 /// </summary> 33 [ServiceContract] 32 34 public interface IClientCommunicator { 35 [OperationContract] 33 36 Response Login(Client clientInfo); 34 37 } -
trunk/sources/HeuristicLab.Hive.Server.Core/ClientCommunicator.cs
r741 r751 3 3 using System.Linq; 4 4 using System.Text; 5 using HeuristicLab.Hive.Contracts.BusinessObjects; 5 6 using HeuristicLab.Hive.Server.Interfaces; 6 7 … … 9 10 #region IClientCommunicator Members 10 11 11 public Response Login( HeuristicLab.Hive.Server.BusinessObjects.Client clientInfo) {12 public Response Login(Client clientInfo) { 12 13 Response response = new Response(); 13 14 response.Success = true;
Note: See TracChangeset
for help on using the changeset viewer.