Skip to content

Instantly share code, notes, and snippets.

@sbolum
sbolum / AsyncHelper.cs
Last active Jun 3, 2017
Call Async Methods as Sync
View AsyncHelper.cs
/// <summary>
/// Async metodları sync bir şekilde kullanabilmek için helper.
/// </summary>
public static class AsyncHelper
{
private static readonly TaskFactory _myTaskFactory = new
TaskFactory(CancellationToken.None,
TaskCreationOptions.None,
TaskContinuationOptions.None,
TaskScheduler.Default);