Remove distracting ToDo comments
MODIFY
MagicalCryptoWallet/Helpers/HttpMessageHelper.cs
MagicalCryptoWallet/Helpers/HttpMessageHelper.cs
@@ -439,7 +439,6 @@ namespace System.Net.Http
private static async Task<byte[]> ReadBytesTillLengthAsync(Stream stream, long? length, CancellationToken ctsToken)
{
- // TODO make it work with long
try
{
Convert.ToInt32(length);

MODIFY
MagicalCryptoWallet/Logging/LogLevel.cs
MagicalCryptoWallet/Logging/LogLevel.cs
/// <summary>
/// For tracking the general flow of the application.
/// These logs typically have some long-term value.
- /// Example: "Request received for path /api/todo"
+ /// Example: "Request received for path /api/my-controller"
/// </summary>
Info,
/// <summary>

MODIFY
MagicalCryptoWallet/Logging/Logger.cs
MagicalCryptoWallet/Logging/Logger.cs
@@ -352,19 +352,19 @@ namespace MagicalCryptoWallet.Logging
/// <summary>
/// For tracking the general flow of the application.
/// These logs typically have some long-term value.
- /// Example: "Request received for path /api/todo"
+ /// Example: "Request received for path /api/my-controller"
/// </summary>
public static void LogInfo<T>(string message) => Log<T>(LogLevel.Info, message);
/// <summary>
/// For tracking the general flow of the application.
/// These logs typically have some long-term value.
- /// Example: "Request received for path /api/todo"
+ /// Example: "Request received for path /api/my-controller"
/// </summary>
public static void LogInfo(string message, Type category) => Log(LogLevel.Info, message, category);
/// <summary>
/// For tracking the general flow of the application.
/// These logs typically have some long-term value.
- /// Example: "Request received for path /api/todo"
+ /// Example: "Request received for path /api/my-controller"
/// </summary>
public static void LogInfo(string message, string category = "") => Log(LogLevel.Info, message, category);
@@ -375,7 +375,7 @@ namespace MagicalCryptoWallet.Logging
///
/// For tracking the general flow of the application.
/// These logs typically have some long-term value.
- /// Example: "Request received for path /api/todo"
+ /// Example: "Request received for path /api/my-controller"
/// <paramref name="toStringLevel"/>Should be lower or equal to Info level.
/// </summary>
public static void LogInfo<T>(Exception ex, LogLevel toStringLevel = LogLevel.Trace) => Log<T>(ex, LogLevel.Info, toStringLevel);
@@ -386,7 +386,7 @@ namespace MagicalCryptoWallet.Logging
///
/// For tracking the general flow of the application.
/// These logs typically have some long-term value.
- /// Example: "Request received for path /api/todo"
+ /// Example: "Request received for path /api/my-controller"
/// <paramref name="toStringLevel"/>Should be lower or equal to Info level.
/// </summary>
public static void LogInfo(Exception ex, LogLevel toStringLevel = LogLevel.Trace, Type category = null) => Log(ex, LogLevel.Info, toStringLevel, category);
@@ -397,7 +397,7 @@ namespace MagicalCryptoWallet.Logging
///
/// For tracking the general flow of the application.
/// These logs typically have some long-term value.
- /// Example: "Request received for path /api/todo"
+ /// Example: "Request received for path /api/my-controller"
/// <paramref name="toStringLevel"/>Should be lower or equal to Info level.
/// </summary>
public static void LogInfo(Exception ex, LogLevel toStringLevel = LogLevel.Trace, string category = "") => Log(ex, LogLevel.Info, toStringLevel, category);

MODIFY
MagicalCryptoWallet/Services/WalletService.cs
MagicalCryptoWallet/Services/WalletService.cs
@@ -105,14 +105,10 @@ namespace MagicalCryptoWallet.Services
}
}
- // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below.
- // TODO: set large fields to null.
-
_disposedValue = true;
}
}
- // TODO: override a finalizer only if Dispose(bool disposing) above has code to free unmanaged resources.
// ~WalletService() {
// // Do not change this code. Put cleanup code in Dispose(bool disposing) above.
// Dispose(false);
@@ -123,7 +119,6 @@ namespace MagicalCryptoWallet.Services
{
// Do not change this code. Put cleanup code in Dispose(bool disposing) above.
Dispose(true);
- // TODO: uncomment the following line if the finalizer is overridden above.
// GC.SuppressFinalize(this);
}

MODIFY
MagicalCryptoWallet/TorSocks5/TorHttpClient.cs
MagicalCryptoWallet/TorSocks5/TorHttpClient.cs
@@ -194,18 +194,13 @@ namespace MagicalCryptoWallet.TorSocks5
{
if (disposing)
{
- // TODO: dispose managed state (managed objects).
TorSocks5Client?.Dispose();
}
- // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below.
- // TODO: set large fields to null.
-
_disposedValue = true;
}
}
- // TODO: override a finalizer only if Dispose(bool disposing) above has code to free unmanaged resources.
// ~TorHttpClient() {
// // Do not change this code. Put cleanup code in Dispose(bool disposing) above.
// Dispose(false);
@@ -216,7 +211,6 @@ namespace MagicalCryptoWallet.TorSocks5
{
// Do not change this code. Put cleanup code in Dispose(bool disposing) above.
Dispose(true);
- // TODO: uncomment the following line if the finalizer is overridden above.
// GC.SuppressFinalize(this);
}

MODIFY
MagicalCryptoWallet/TorSocks5/TorSocks5Client.cs
MagicalCryptoWallet/TorSocks5/TorSocks5Client.cs
@@ -475,14 +475,10 @@ namespace MagicalCryptoWallet.TorSocks5
DisposeTcpClient();
}
- // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below.
- // TODO: set large fields to null.
-
_disposedValue = true;
}
}
- // TODO: override a finalizer only if Dispose(bool disposing) above has code to free unmanaged resources.
// ~TorSocks5Client() {
// // Do not change this code. Put cleanup code in Dispose(bool disposing) above.
// Dispose(false);
@@ -493,7 +489,6 @@ namespace MagicalCryptoWallet.TorSocks5
{
// Do not change this code. Put cleanup code in Dispose(bool disposing) above.
Dispose(true);
- // TODO: uncomment the following line if the finalizer is overridden above.
// GC.SuppressFinalize(this);
}

Remove distracting ToDo comments