Dispose() public method

public Dispose ( ) : void
return void
コード例 #1
0
ファイル: SyncContextHelper.cs プロジェクト: reuzel/CqlSharp
 public static void Invoke(Func<Task> action)
 {
     var helper = new SyncContextHelper();
     var task = helper._dispatcher.Invoke(action);
     task.Wait();
     helper.Dispose();
 }
コード例 #2
0
ファイル: SyncContextHelper.cs プロジェクト: reuzel/CqlSharp
 public static void Invoke(Action action)
 {
     var helper = new SyncContextHelper();
     helper._dispatcher.Invoke(action);
     helper.Dispose();
 }