示例#1
0
        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>();
        }
示例#3
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public TaskStringVisitor()
 {
     taskCompletionSource = new AsyncTaskCompletionSource <string>();
 }
示例#4
0
 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>();
        }
示例#7
0
 public TaskResolveCallback()
 {
     taskCompletionSource = new AsyncTaskCompletionSource <ResolveCallbackResult>();
 }
 public TaskRegisterCdmCallback()
 {
     taskCompletionSource = new AsyncTaskCompletionSource <CdmRegistration>();
 }
示例#9
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public TaskCookieVisitor()
 {
     taskCompletionSource = new AsyncTaskCompletionSource <List <Cookie> >();
     list = new List <Cookie>();
 }