Browse Source

Added missing IDisposables

tags/1.0-rc
RogueException 8 years ago
parent
commit
b166683704
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/Discord.Net.Rest/Net/DefaultRestClient.cs
  2. +1
    -1
      src/Discord.Net.WebSocket/Net/DefaultUdpSocket.cs
  3. +1
    -1
      src/Discord.Net.WebSocket/Net/DefaultWebSocketClient.cs

+ 1
- 1
src/Discord.Net.Rest/Net/DefaultRestClient.cs View File

@@ -12,7 +12,7 @@ using System.Threading.Tasks;

namespace Discord.Net.Rest
{
internal sealed class DefaultRestClient : IRestClient
internal sealed class DefaultRestClient : IRestClient, IDisposable
{
private const int HR_SECURECHANNELFAILED = -2146233079;



+ 1
- 1
src/Discord.Net.WebSocket/Net/DefaultUdpSocket.cs View File

@@ -7,7 +7,7 @@ using System.Threading.Tasks;

namespace Discord.Net.Udp
{
internal class DefaultUdpSocket : IUdpSocket
internal class DefaultUdpSocket : IUdpSocket, IDisposable
{
public event Func<byte[], int, int, Task> ReceivedDatagram;



+ 1
- 1
src/Discord.Net.WebSocket/Net/DefaultWebSocketClient.cs View File

@@ -10,7 +10,7 @@ using System.Threading.Tasks;

namespace Discord.Net.WebSockets
{
internal class DefaultWebSocketClient : IWebSocketClient
internal class DefaultWebSocketClient : IWebSocketClient, IDisposable
{
public const int ReceiveChunkSize = 16 * 1024; //16KB
public const int SendChunkSize = 4 * 1024; //4KB


Loading…
Cancel
Save