コード例 #1
0
        public async Task <string> CreateRequestID()
        {
            bool   result;
            string myRequestID;

            do
            {
                myRequestID = Guid.NewGuid().ToString("N").Substring(0, 12);
                result      = await _agentRepository.CheckExistingRequestID(myRequestID);
            } while (result);

            return(myRequestID);
        }