This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Runtime.CompilerServices; | |
namespace Example | |
{ | |
public class TestTaskRun | |
{ | |
static async Task Main() | |
{ | |
// Task.Run: Waits for print an delay task to complete first. | |
await Run("Task.Run", async () => await Task.Run(async () => await PrintAndDelayAsync("Task.Run", 1))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Microsoft.Data.SqlClient; | |
namespace TestApp | |
{ | |
internal class SetupLargeColumnDataTable | |
{ | |
public static void Main() | |
{ | |
using SqlConnection sqlConnection = new("<conn_string_here>"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.Data.SqlClient; | |
namespace SqlClientTests | |
{ | |
public class TestOpenAsyncPerformance | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Data.SqlClient; | |
namespace AsyncCallbackDeadlockTest | |
{ | |
internal class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
RunTest("Server=tcp:localhost; Integrated Security=true;"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Data; | |
using Microsoft.Data.SqlClient; | |
using System.Diagnostics; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace ReproApps | |
{ | |
class ReadAsyncTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Data; | |
using System.Data.SqlClient; | |
using System.Threading.Tasks; | |
using System.Transactions; | |
namespace TestMultithreadedTS | |
{ | |
class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Data; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.Data.SqlClient; | |
namespace AllManagedSNITests | |
{ | |
class _659_repro | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.Data.SqlClient; | |
namespace ManagedSNI | |
{ | |
class _422 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Concurrent; | |
using System.Threading; | |
using System.Threading.Tasks; | |
public static class TestOrder | |
{ | |
internal class ConcurrentQueueSemaphore | |
{ | |
private readonly SemaphoreSlim _semaphore; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Data.Common; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Data; | |
using Microsoft.Data.SqlClient; | |
namespace TestTransactionLeak | |
{ | |
public class SqlContext : IDisposable, IAsyncDisposable |
NewerOlder