Changeset 791
- Timestamp:
- 11/20/08 15:45:16 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Communication/ServerProxy.cs
r790 r791 10 10 11 11 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IClientCommunicator/Login", ReplyAction = "http://tempuri.org/IClientCommunicator/LoginResponse")] 12 HeuristicLab.Hive.Contracts.Response Login(HeuristicLab.Hive.Contracts.BusinessObjects.Client clientInfo);12 HeuristicLab.Hive.Contracts.Response Login(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo); 13 13 14 14 [System.ServiceModel.OperationContractAttribute(AsyncPattern = true, Action = "http://tempuri.org/IClientCommunicator/Login", ReplyAction = "http://tempuri.org/IClientCommunicator/LoginResponse")] 15 System.IAsyncResult BeginLogin(HeuristicLab.Hive.Contracts.BusinessObjects.Client clientInfo, System.AsyncCallback callback, object asyncState);15 System.IAsyncResult BeginLogin(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo, System.AsyncCallback callback, object asyncState); 16 16 17 17 HeuristicLab.Hive.Contracts.Response EndLogin(System.IAsyncResult result); … … 212 212 public event System.EventHandler<LogoutCompletedEventArgs> LogoutCompleted; 213 213 214 public HeuristicLab.Hive.Contracts.Response Login(HeuristicLab.Hive.Contracts.BusinessObjects.Client clientInfo) {214 public HeuristicLab.Hive.Contracts.Response Login(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo) { 215 215 return base.Channel.Login(clientInfo); 216 216 } 217 217 218 218 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 219 public System.IAsyncResult BeginLogin(HeuristicLab.Hive.Contracts.BusinessObjects.Client clientInfo, System.AsyncCallback callback, object asyncState) {219 public System.IAsyncResult BeginLogin(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo, System.AsyncCallback callback, object asyncState) { 220 220 return base.Channel.BeginLogin(clientInfo, callback, asyncState); 221 221 } … … 227 227 228 228 private System.IAsyncResult OnBeginLogin(object[] inValues, System.AsyncCallback callback, object asyncState) { 229 HeuristicLab.Hive.Contracts.BusinessObjects.Client clientInfo = ((HeuristicLab.Hive.Contracts.BusinessObjects.Client)(inValues[0]));229 HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo = ((HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo)(inValues[0])); 230 230 return this.BeginLogin(clientInfo, callback, asyncState); 231 231 } … … 244 244 } 245 245 246 public void LoginAsync(HeuristicLab.Hive.Contracts.BusinessObjects.Client clientInfo) {246 public void LoginAsync(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo) { 247 247 this.LoginAsync(clientInfo, null); 248 248 } 249 249 250 public void LoginAsync(HeuristicLab.Hive.Contracts.BusinessObjects.Client clientInfo, object userState) {250 public void LoginAsync(HeuristicLab.Hive.Contracts.BusinessObjects.ClientInfo clientInfo, object userState) { 251 251 if ((this.onBeginLoginDelegate == null)) { 252 252 this.onBeginLoginDelegate = new BeginOperationDelegate(this.OnBeginLogin); -
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r790 r791 64 64 beat.StartHeartbeat(); 65 65 66 BO.Client clientInfo = new BO.Client{ ClientId = Guid.NewGuid() };66 BO.ClientInfo clientInfo = new BO.ClientInfo { ClientId = Guid.NewGuid() }; 67 67 68 68 ClientCommunicatorClient clientCommunicator = ServiceLocator.GetClientCommunicator(); -
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/Client.cs
r751 r791 31 31 32 32 [DataContract] 33 public class Client : Resource {33 public class ClientInfo : Resource { 34 34 [DataMember] 35 35 public Guid ClientId { get; set; } -
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/Job.cs
r780 r791 35 35 public State State { get; set; } 36 36 [DataMember] 37 public Client Client { get; set; }37 public ClientInfo Client { get; set; } 38 38 [DataMember] 39 39 public Job parentJob { get; set; } -
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/JobResult.cs
r751 r791 35 35 public String Result { get; set; } // TODO DataStructure for Result needs to be defined 36 36 [DataMember] 37 public Client Client { get; set; }37 public ClientInfo Client { get; set; } 38 38 39 39 } -
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/UpTimeStatistics.cs
r751 r791 31 31 public class UpTimeStatistics { 32 32 [DataMember] 33 public Client Client { get; set; }33 public ClientInfo Client { get; set; } 34 34 [DataMember] 35 35 public DateTime Login { get; set; } -
trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/IClientCommunicator.cs
r780 r791 34 34 public interface IClientCommunicator { 35 35 [OperationContract] 36 Response Login(Client clientInfo);36 Response Login(ClientInfo clientInfo); 37 37 [OperationContract] 38 38 ResponseHB SendHeartBeat(HeartBeatData hbData); -
trunk/sources/HeuristicLab.Hive.Server.Core/ClientCommunicator.cs
r786 r791 12 12 /// </summary> 13 13 public class ClientCommunicator: IClientCommunicator { 14 List<Client > clients;14 List<ClientInfo> clients; 15 15 List<long> jobs; 16 16 int nrOfJobs = 10; … … 25 25 #region IClientCommunicator Members 26 26 27 public Response Login(Client clientInfo) {27 public Response Login(ClientInfo clientInfo) { 28 28 if (clients == null) 29 clients = new List<Client >();29 clients = new List<ClientInfo>(); 30 30 31 31 clients.Add(clientInfo); … … 72 72 public Response Logout(Guid clientId) { 73 73 bool clientRemoved = false; 74 foreach (Client client in clients) {74 foreach (ClientInfo client in clients) { 75 75 if (client.ClientId.Equals(clientId)) { 76 76 clients.Remove(client);
Note: See TracChangeset
for help on using the changeset viewer.