Ignore:
Timestamp:
Nov 10, 2010, 1:56:10 PM (11 years ago)
Author:
nolte
Message:

Added the Branch Changes to the Trunk...Each Job will see a unique machine ID as the momentary "Jobsubmitter". This will be changed to the Avatar Name of the Job Submitter later on. These changes are tested.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/P2P/Storage/StorageHelper.cs

    r2019 r2074  
    169169        }
    170170
     171        //------------------------------------------------------------------------
     172        public long SubmitterID(String ofJobIdentifier)
     173        {
     174            var key = ofJobIdentifier + "_submitterid";
     175            var requestResult = RetrieveWithStatistic(key);
     176
     177            if (requestResult.IsSuccessful() && requestResult.Data != null)
     178            {
     179                var submitterid = BitConverter.ToInt64(requestResult.Data, 0);
     180                return submitterid;
     181            }
     182
     183            StoreWithStatistic(key, BitConverter.GetBytes(Cryptool.PluginBase.Miscellaneous.UniqueIdentifier.GetID()));
     184            return Cryptool.PluginBase.Miscellaneous.UniqueIdentifier.GetID();
     185        }
     186        //---------------------------------------------------------------------------
     187
    171188        public RequestResult RetrieveWithStatistic(string key)
    172189        {
Note: See TracChangeset for help on using the changeset viewer.