Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7604 for branches


Ignore:
Timestamp:
03/13/12 11:07:09 (13 years ago)
Author:
ascheibe
Message:

#1174 fixed a small bug which occurred when saving the client id with an okb run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/RunCreation/OKBRun.cs

    r7574 r7604  
    8383    private Guid UserId;
    8484
     85    [Storable]
     86    private Guid ClientId;
     87
    8588    [Storable(Name = "Stored")]
    8689    private bool StorableStored {
     
    114117      stored = original.stored;
    115118      UserId = original.UserId;
     119      ClientId = original.ClientId;
    116120    }
    117121    public OKBRun(long algorithmId, long problemId, IRun run, Guid userId)
     
    122126      this.stored = false;
    123127      this.UserId = userId;
     128      this.ClientId = ClientInformation.Instance.ClientInfo.Id;
    124129    }
    125130
     
    134139      run.AlgorithmId = algorithmId;
    135140      run.ProblemId = problemId;
    136       //TODO: should there be some error handling? at this point it should already be checked that the user and client are registred
    137141      run.UserId = UserId;
    138       run.ClientId = ClientInformation.Instance.ClientInfo.Id;
     142      run.ClientId = ClientId;
    139143      run.CreatedDate = createdDate;
    140144      run.ParameterValues = ConvertToValues(Parameters);
Note: See TracChangeset for help on using the changeset viewer.