Fixed some reference errors
This commit is contained in:
@@ -165,21 +165,21 @@
|
||||
<Compile Include="..\Discord.Net\Net\API\Responses.cs">
|
||||
<Link>Net\API\Responses.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Discord.Net\Net\API\RestClient.BuiltIn.cs">
|
||||
<Link>Net\API\RestClient.BuiltIn.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Discord.Net\Net\API\RestClient.cs">
|
||||
<Link>Net\API\RestClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Discord.Net\Net\API\RestClient.Events.cs">
|
||||
<Link>Net\API\RestClient.Events.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Discord.Net\Net\API\RestClient.SharpRest.cs">
|
||||
<Link>Net\API\RestClient.SharpRest.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Discord.Net\Net\HttpException.cs">
|
||||
<Link>Net\HttpException.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Discord.Net\Net\RestClient.BuiltIn.cs">
|
||||
<Link>Net\RestClient.BuiltIn.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Discord.Net\Net\RestClient.cs">
|
||||
<Link>Net\RestClient.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Discord.Net\Net\RestClient.Events.cs">
|
||||
<Link>Net\RestClient.Events.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Discord.Net\Net\RestClient.SharpRest.cs">
|
||||
<Link>Net\RestClient.SharpRest.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Discord.Net\Net\WebSockets\Commands.cs">
|
||||
<Link>Net\WebSockets\Commands.cs</Link>
|
||||
</Compile>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#if DNXCORE50
|
||||
using Discord.Net.API;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
@@ -9,7 +8,7 @@ using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Discord.Net
|
||||
namespace Discord.Net.API
|
||||
{
|
||||
internal class BuiltInRestEngine : IRestEngine
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
|
||||
namespace Discord.Net
|
||||
namespace Discord.Net.API
|
||||
{
|
||||
internal partial class RestClient
|
||||
{
|
||||
@@ -1,5 +1,4 @@
|
||||
#if !DNXCORE50
|
||||
using Discord.Net.API;
|
||||
using RestSharp;
|
||||
using System;
|
||||
using System.IO;
|
||||
@@ -7,13 +6,13 @@ using System.Net.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Discord.Net
|
||||
namespace Discord.Net.API
|
||||
{
|
||||
internal class SharpRestEngine : IRestEngine
|
||||
internal class RestSharpRestEngine : IRestEngine
|
||||
{
|
||||
private readonly RestSharp.RestClient _client;
|
||||
|
||||
public SharpRestEngine(string userAgent)
|
||||
public RestSharpRestEngine(string userAgent)
|
||||
{
|
||||
_client = new RestSharp.RestClient(Endpoints.BaseApi)
|
||||
{
|
||||
@@ -1,5 +1,4 @@
|
||||
using Discord.Net.API;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Net.Http;
|
||||
@@ -7,7 +6,7 @@ using System.Reflection;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Discord.Net
|
||||
namespace Discord.Net.API
|
||||
{
|
||||
internal interface IRestEngine
|
||||
{
|
||||
@@ -31,7 +30,7 @@ namespace Discord.Net
|
||||
#if DNXCORE50
|
||||
_engine = new BuiltInRestEngine(userAgent);
|
||||
#else
|
||||
_engine = new SharpRestEngine(userAgent);
|
||||
_engine = new RestSharpRestEngine(userAgent);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -27,14 +27,18 @@
|
||||
"frameworks": {
|
||||
"net45": {
|
||||
"dependencies": {
|
||||
"Microsoft.Net.Http": "2.2.29",
|
||||
"RestSharp": "105.2.3"
|
||||
},
|
||||
"frameworkAssemblies": {
|
||||
"System.Net.Http": "4.0.0.0"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Microsoft.Net.Http": "2.2.29",
|
||||
"RestSharp": "105.2.3"
|
||||
},
|
||||
"frameworkAssemblies": {
|
||||
"System.Net.Http": "4.0.0.0"
|
||||
}
|
||||
},
|
||||
"dnxcore50": {
|
||||
|
||||
Reference in New Issue
Block a user