Beispiel #1
0
 /// <summary>
 /// create a new instance of the <see cref="UID"/>,
 /// with the server value.
 /// </summary>
 /// <param name="_server_value"></param>
 /// <param name="_socket_"></param>
 private UID(IStringProvider <StrongString> _value_, bool logInMode = false)
 {
     if (logInMode)
     {
         SetParams(_value_.GetStrong());
         _uid_server_index_ = _value.Substring(START_INDEX, LENGTH_INDEX).ToInt32() -
                              BASE_UID_SERVER_INDEX_SHOW;
         IsLoaded = true;
     }
     else
     {
         _uid_server_index_ = _value_.Substring(START_INDEX, LENGTH_INDEX).ToInt32() -
                              BASE_UID_SERVER_INDEX_SHOW;
         _value   = _value_.GetStrong();
         IsLoaded = false;
     }
 }