Moved Frame models, added default providers

This commit is contained in:
RogueException
2017-02-17 23:06:18 -04:00
parent 9d7073fafe
commit d321ad3e5c
10 changed files with 81 additions and 8 deletions

View File

@@ -0,0 +1,19 @@
using System;
namespace Discord.Net.Rest
{
public static class DefaultRestClientProvider
{
public static readonly RestClientProvider Instance = url =>
{
try
{
return new DefaultRestClient(url);
}
catch (PlatformNotSupportedException ex)
{
throw new PlatformNotSupportedException("The default RestClientProvider is not supported on this platform.", ex);
}
};
}
}