mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-19 04:13:02 +00:00
Cleanup/Fixed Resharper comments
This commit is contained in:
@@ -16,7 +16,7 @@ namespace CryptoExchange.Net.Sockets
|
||||
/// <summary>
|
||||
/// Socket implementation
|
||||
/// </summary>
|
||||
public class BaseSocket: IWebsocket
|
||||
internal class BaseSocket: IWebsocket
|
||||
{
|
||||
internal static int lastStreamId;
|
||||
private static readonly object streamIdLock = new object();
|
||||
@@ -153,7 +153,7 @@ namespace CryptoExchange.Net.Sockets
|
||||
if (DateTime.UtcNow - LastActionTime > Timeout)
|
||||
{
|
||||
log.Write(LogVerbosity.Warning, $"No data received for {Timeout}, reconnecting socket");
|
||||
Close().ConfigureAwait(false);
|
||||
_ = Close().ConfigureAwait(false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -267,7 +267,7 @@ namespace CryptoExchange.Net.Sockets
|
||||
if (connected)
|
||||
{
|
||||
log?.Write(LogVerbosity.Debug, $"Socket {Id} connected");
|
||||
if ((timeoutTask == null || timeoutTask.IsCompleted) && Timeout != default(TimeSpan))
|
||||
if ((timeoutTask == null || timeoutTask.IsCompleted) && Timeout != default)
|
||||
timeoutTask = Task.Run(CheckTimeout);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace CryptoExchange.Net.Sockets
|
||||
SocketSubscription currentSubscription = null;
|
||||
try
|
||||
{
|
||||
bool handled = false;
|
||||
var handled = false;
|
||||
var sw = Stopwatch.StartNew();
|
||||
lock (handlersLock)
|
||||
{
|
||||
@@ -387,7 +387,7 @@ namespace CryptoExchange.Net.Sockets
|
||||
if (subscription.Confirmed)
|
||||
await socketClient.Unsubscribe(this, subscription).ConfigureAwait(false);
|
||||
|
||||
bool shouldCloseWrapper = false;
|
||||
var shouldCloseWrapper = false;
|
||||
lock (handlersLock)
|
||||
{
|
||||
handlers.Remove(subscription);
|
||||
|
||||
Reference in New Issue
Block a user