public async Task <PackageType> GetPackageType(string id, List <string> includesLst = null) { try { using (var t = new PackageTypeClient()) { var res = await t.GetPackageTypeByKey(id, includesLst).ConfigureAwait(continueOnCapturedContext: false); if (res != null) { return(new PackageType(res)); } else { return(null); } } } catch (FaultException <ValidationFault> e) { throw new Exception(e.Detail.Message, e.InnerException); } catch (Exception) { Debugger.Break(); throw; } }