Skip to content

Instantly share code, notes, and snippets.

@sbolum
sbolum / AsyncHelper.cs
Last active June 3, 2017 23:00
Call Async Methods as Sync
/// <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);