Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Tests/Mocks/MockServiceLocator.cs @ 5511

Last change on this file since 5511 was 5405, checked in by cneumuel, 14 years ago

#1233

  • moved heartbeat timestamps of slaves and jobs into database to make server stateless
  • made slave use the right authentication ("hiveslave" instead of HL username/password)
  • moved heartbeat related methods into HeartbeatManager
  • changed signature of Service.Hello method, so all hardware related information is transferred in that method withing the Slave-object
File size: 576 bytes
RevLine 
[5404]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Clients.Common;
6using HeuristicLab.Services.Hive.Common.ServiceContracts;
7using HeuristicLab.Services.Hive;
8
9namespace HeuristicLab.Clients.Hive.Tests {
10  public class MockServiceLocator : IServiceLocator {
11    public Disposable<IHiveService> GetService() {
12      return new Disposable<IHiveService>(new HiveService());
13    }
[5405]14
15    public Disposable<IHiveService> GetService(string username, string password) {
16      return GetService();
17    }
[5404]18  }
19}
Note: See TracBrowser for help on using the repository browser.