This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Allows a semaphore to release with the IDisposable pattern | |
/// </summary> | |
/// <remarks> | |
/// Solves an issue where using the pattern: | |
/// <code> | |
/// try { await sem.WaitAsync(cancellationToken); } | |
/// finally { sem.Release(); } | |
/// </code> | |
/// Can result in SemaphoreFullException if the token is cancelled and the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using Hl7.Fhir.Introspection; | |
using Hl7.Fhir.Model; | |
using Hl7.Fhir.Serialization; | |
using Xunit; | |
namespace TestProject1 | |
{ | |
public class UnitTest1 |
OlderNewer