예제 #1
0
 public async Task ReleaseLock()
 {
     try
     {
         if (ValidateHelper.IsNotEmpty(this._lock_id))
         {
             await this.Client.deleteAsync(this._lock_path + "/" + this._lock_id);
         }
     }
     catch (Exception e)
     {
         logger.AddWarningLog(e: e, msg: e.Message);
     }
     this._lock_id = null;
 }