Singleton ApiOptions instance has been removed.

This commit is contained in:
aedampir@gmail.com
2016-03-16 12:23:38 +07:00
parent a1341c99be
commit 0fd34d9edc
+2 -17
View File
@@ -5,26 +5,11 @@ using System.Diagnostics;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class ApiOptions
public class ApiOptions
{
private sealed class ApiOptionsSingleton
{
private static readonly Lazy<ApiOptions> _lazy =
new Lazy<ApiOptions>(() => new ApiOptions());
public static ApiOptions Instance
{
get { return _lazy.Value; }
}
private ApiOptionsSingleton()
{
}
}
public static ApiOptions None
{
get { return ApiOptionsSingleton.Instance; }
get { return new ApiOptions(); }
}
/// <summary>