Changeset 4312


Ignore:
Timestamp:
08/25/10 04:31:15 (12 years ago)
Author:
swagner
Message:

Worked on OKB user authentication (#1167)

Location:
branches/OKB/HeuristicLab.OKB.AlgorithmHost
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB/HeuristicLab.OKB.AlgorithmHost/AlgorithmHost.cs

    r4311 r4312  
    106106    public OKBRunner.StarterKit StarterKit { get; set; }
    107107
    108     private static string username = Environment.UserDomainName + "\\" + Environment.UserName;
    109 
    110108    public OKBRunner.StarterKit DownloadStarerKit() {
    111109      OKBRunner.RunnerServiceClient client =
    112110        ClientFactory.Create<OKBRunner.RunnerServiceClient, OKBRunner.IRunnerService>();
    113       client.Login(username, Environment.MachineName);
     111      client.Login(Environment.MachineName);
    114112      OKBRunner.StarterKit starterKit = client.GetStarterKit("HL 3.3");
    115113      client.Logout();
     
    192190    public void SubmitRun(OKBRunner.ExperimentKit experimentKit) {
    193191      var client = ClientFactory.Create<OKBRunner.RunnerServiceClient, OKBRunner.IRunnerService>();
    194       client.Login(username, Environment.MachineName);
     192      client.Login(Environment.MachineName);
    195193      client.AddRun(experimentKit.Algorithm, experimentKit.Problem, StarterKit.Projects.First());
    196194      client.Logout();
     
    270268      OKBRunner.RunnerServiceClient client =
    271269        ClientFactory.Create<OKBRunner.RunnerServiceClient, OKBRunner.IRunnerService>();
    272       client.Login(username, Environment.MachineName);
     270      client.Login(Environment.MachineName);
    273271      OKBRunner.ExperimentKit experimentKit = client.PrepareExperiment(OKBAlgorithm, OKBProblem);
    274272      client.Logout();
  • branches/OKB/HeuristicLab.OKB.AlgorithmHost/Service References/OKBRunner/Reference.cs

    r4311 r4312  
    41094109       
    41104110        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IRunnerService/Login", ReplyAction="http://tempuri.org/IRunnerService/LoginResponse")]
    4111         bool Login(string username, string clientname);
     4111        bool Login(string clientname);
    41124112       
    41134113        [System.ServiceModel.OperationContractAttribute(IsInitiating=false, Action="http://tempuri.org/IRunnerService/GetStarterKit", ReplyAction="http://tempuri.org/IRunnerService/GetStarterKitResponse")]
     
    41544154        }
    41554155       
    4156         public bool Login(string username, string clientname) {
    4157             return base.Channel.Login(username, clientname);
     4156        public bool Login(string clientname) {
     4157            return base.Channel.Login(clientname);
    41584158        }
    41594159       
  • branches/OKB/HeuristicLab.OKB.AlgorithmHost/Service References/OKBRunner/service.xsd

    r4311 r4312  
    66    <xs:complexType>
    77      <xs:sequence>
    8         <xs:element minOccurs="0" name="username" nillable="true" type="xs:string" />
    98        <xs:element minOccurs="0" name="clientname" nillable="true" type="xs:string" />
    109      </xs:sequence>
Note: See TracChangeset for help on using the changeset viewer.