Skip to content

Commit

Permalink
Merge pull request #911 from FirelyTeam/feature/907-Transaction-failu…
Browse files Browse the repository at this point in the history
…re-doesnt-return-null

fix: 907 Transaction failure doesn't return null
  • Loading branch information
ewoutkramer committed Mar 20, 2019
2 parents da02002 + d000d5a commit d7e1193
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Hl7.Fhir.Core/Rest/FhirClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -727,16 +727,16 @@ private Task<Bundle> internalHistoryAsync(string resourceType = null, string id
return internalHistoryAsync(resourceType, id, since, pageSize, summary).WaitResult();
}

#endregion
#endregion

#region Transaction
#region Transaction

/// <summary>
/// Send a set of creates, updates and deletes to the server to be processed in one transaction
/// </summary>
/// <param name="bundle">The bundled creates, updates and deleted</param>
/// <returns>A bundle as returned by the server after it has processed the transaction, or null
/// if an error occurred.</returns>
/// <returns>A bundle as returned by the server after it has processed the transaction, or
/// a FhirOperationException will be thrown if an error occurred.</returns>
public Task<Bundle> TransactionAsync(Bundle bundle)
{
if (bundle == null) throw new ArgumentNullException(nameof(bundle));
Expand All @@ -748,8 +748,8 @@ public Task<Bundle> TransactionAsync(Bundle bundle)
/// Send a set of creates, updates and deletes to the server to be processed in one transaction
/// </summary>
/// <param name="bundle">The bundled creates, updates and deleted</param>
/// <returns>A bundle as returned by the server after it has processed the transaction, or null
/// if an error occurred.</returns>
/// <returns>A bundle as returned by the server after it has processed the transaction, or
/// a FhirOperationException will be thrown if an error occurred.</returns>
public Bundle Transaction(Bundle bundle)
{
return TransactionAsync(bundle).WaitResult();
Expand Down

0 comments on commit d7e1193

Please sign in to comment.