Added missing IDisposables
This commit is contained in:
@@ -12,7 +12,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace Discord.Net.Rest
|
namespace Discord.Net.Rest
|
||||||
{
|
{
|
||||||
internal sealed class DefaultRestClient : IRestClient
|
internal sealed class DefaultRestClient : IRestClient, IDisposable
|
||||||
{
|
{
|
||||||
private const int HR_SECURECHANNELFAILED = -2146233079;
|
private const int HR_SECURECHANNELFAILED = -2146233079;
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace Discord.Net.Udp
|
namespace Discord.Net.Udp
|
||||||
{
|
{
|
||||||
internal class DefaultUdpSocket : IUdpSocket
|
internal class DefaultUdpSocket : IUdpSocket, IDisposable
|
||||||
{
|
{
|
||||||
public event Func<byte[], int, int, Task> ReceivedDatagram;
|
public event Func<byte[], int, int, Task> ReceivedDatagram;
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace Discord.Net.WebSockets
|
namespace Discord.Net.WebSockets
|
||||||
{
|
{
|
||||||
internal class DefaultWebSocketClient : IWebSocketClient
|
internal class DefaultWebSocketClient : IWebSocketClient, IDisposable
|
||||||
{
|
{
|
||||||
public const int ReceiveChunkSize = 16 * 1024; //16KB
|
public const int ReceiveChunkSize = 16 * 1024; //16KB
|
||||||
public const int SendChunkSize = 4 * 1024; //4KB
|
public const int SendChunkSize = 4 * 1024; //4KB
|
||||||
|
|||||||
Reference in New Issue
Block a user