using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
+using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Net.Http;
using System.Text;
_instance = new Lazy<ShortUrl>(() => new ShortUrl(), true);
}
+ [SuppressMessage("Microsoft.Reliability", "CA2000:DisposeObjectsBeforeLosingScope")]
internal ShortUrl()
: this(CreateDefaultHttpClient())
{
}
}
+ [SuppressMessage("Microsoft.Reliability", "CA2000:DisposeObjectsBeforeLosingScope")]
private static HttpClient CreateDefaultHttpClient()
{
var handler = new HttpClientHandler