Changeset 4312
- Timestamp:
- 08/25/10 04:31:15 (14 years ago)
- Location:
- branches/OKB/HeuristicLab.OKB.AlgorithmHost
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB/HeuristicLab.OKB.AlgorithmHost/AlgorithmHost.cs
r4311 r4312 106 106 public OKBRunner.StarterKit StarterKit { get; set; } 107 107 108 private static string username = Environment.UserDomainName + "\\" + Environment.UserName;109 110 108 public OKBRunner.StarterKit DownloadStarerKit() { 111 109 OKBRunner.RunnerServiceClient client = 112 110 ClientFactory.Create<OKBRunner.RunnerServiceClient, OKBRunner.IRunnerService>(); 113 client.Login( username,Environment.MachineName);111 client.Login(Environment.MachineName); 114 112 OKBRunner.StarterKit starterKit = client.GetStarterKit("HL 3.3"); 115 113 client.Logout(); … … 192 190 public void SubmitRun(OKBRunner.ExperimentKit experimentKit) { 193 191 var client = ClientFactory.Create<OKBRunner.RunnerServiceClient, OKBRunner.IRunnerService>(); 194 client.Login( username,Environment.MachineName);192 client.Login(Environment.MachineName); 195 193 client.AddRun(experimentKit.Algorithm, experimentKit.Problem, StarterKit.Projects.First()); 196 194 client.Logout(); … … 270 268 OKBRunner.RunnerServiceClient client = 271 269 ClientFactory.Create<OKBRunner.RunnerServiceClient, OKBRunner.IRunnerService>(); 272 client.Login( username,Environment.MachineName);270 client.Login(Environment.MachineName); 273 271 OKBRunner.ExperimentKit experimentKit = client.PrepareExperiment(OKBAlgorithm, OKBProblem); 274 272 client.Logout(); -
branches/OKB/HeuristicLab.OKB.AlgorithmHost/Service References/OKBRunner/Reference.cs
r4311 r4312 4109 4109 4110 4110 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRunnerService/Login", ReplyAction="http://tempuri.org/IRunnerService/LoginResponse")] 4111 bool Login(string username, stringclientname);4111 bool Login(string clientname); 4112 4112 4113 4113 [System.ServiceModel.OperationContractAttribute(IsInitiating=false, Action="http://tempuri.org/IRunnerService/GetStarterKit", ReplyAction="http://tempuri.org/IRunnerService/GetStarterKitResponse")] … … 4154 4154 } 4155 4155 4156 public bool Login(string username, stringclientname) {4157 return base.Channel.Login( username,clientname);4156 public bool Login(string clientname) { 4157 return base.Channel.Login(clientname); 4158 4158 } 4159 4159 -
branches/OKB/HeuristicLab.OKB.AlgorithmHost/Service References/OKBRunner/service.xsd
r4311 r4312 6 6 <xs:complexType> 7 7 <xs:sequence> 8 <xs:element minOccurs="0" name="username" nillable="true" type="xs:string" />9 8 <xs:element minOccurs="0" name="clientname" nillable="true" type="xs:string" /> 10 9 </xs:sequence>
Note: See TracChangeset
for help on using the changeset viewer.