void IDisposable.Dispose() { //Set the result on the ThreadPool so the Task continuation is not run on the CEF UI Thread taskCompletionSource.TrySetResultAsync(list); list = null; taskCompletionSource = null; }
private bool onComplete; //Only ever accessed on the same CEF thread, so no need for thread safety /// <summary> /// Initializes a new instance of the TaskSetCookieCallback class. /// </summary> public TaskSetCookieCallback() { taskCompletionSource = new AsyncTaskCompletionSource <bool>(); }
/// <summary> /// Default constructor /// </summary> public TaskStringVisitor() { taskCompletionSource = new AsyncTaskCompletionSource <string>(); }
public TaskWebPluginInfoVisitor() { taskCompletionSource = new AsyncTaskCompletionSource <List <WebPluginInfo> >(); list = new List <WebPluginInfo>(); }
/// <summary> /// Default constructor /// </summary> public TaskNavigationEntryVisitor() { taskCompletionSource = new AsyncTaskCompletionSource <List <NavigationEntry> >(); list = new List <NavigationEntry>(); }
private bool onComplete; //Only ever accessed on the same CEF thread, so no need for thread safety /// <summary> /// Initializes a new instance of the TaskDeleteCookiesCallback class. /// </summary> public TaskDeleteCookiesCallback() { taskCompletionSource = new AsyncTaskCompletionSource <int>(); }
public TaskResolveCallback() { taskCompletionSource = new AsyncTaskCompletionSource <ResolveCallbackResult>(); }
public TaskRegisterCdmCallback() { taskCompletionSource = new AsyncTaskCompletionSource <CdmRegistration>(); }
/// <summary> /// Default constructor /// </summary> public TaskCookieVisitor() { taskCompletionSource = new AsyncTaskCompletionSource <List <Cookie> >(); list = new List <Cookie>(); }