ChromiumFX/Generated/Remote/CfrTaskRunner.cs
/// <summary>
/// Post a task for execution on the thread associated with this task runner.
/// Execution will occur asynchronously.
/// </summary>
/// <remarks>
/// See also the original CEF documentation in
/// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_task_capi.h">cef/include/capi/cef_task_capi.h</see>.
/// </remarks>
Post a task for execution on the thread associated with this task runner.
Execution will occur asynchronously.
Post a task for execution on the thread associated with this task runner . Execution will occur asynchronously .
public bool PostTask(CfrTask task) {
            var connection = RemotePtr.connection;
            var call = new CfxTaskRunnerPostTaskRemoteCall();
            call.@this = RemotePtr.ptr;
            if(!CfrObject.CheckConnection(task, connection)) throw new ArgumentException("Render process connection mismatch.", "task");
            call.task = CfrObject.Unwrap(task).ptr;
            call.RequestExecution(connection);
            GC.KeepAlive(task);
            return call.__retval;
        }
public bool PostTask ( CfrTask task ) { var connection = RemotePtr . connection ; var call = new CfxTaskRunnerPostTaskRemoteCall ( ) ; call . @this = RemotePtr . ptr ; if ( ! CfrObject . CheckConnection ( task , connection ) ) throw new ArgumentException ( " " , " " ) ; call . task = CfrObject . Unwrap ( task ) . ptr ; call . RequestExecution ( connection ) ; GC . KeepAlive ( task ) ; return call . __retval ; }
Post a task for execution on the thread associated with this task runner.
Post a task for execution on the thread associated with this task runner .
task
CfrTask
remarks
See also the original CEF documentation in
cef/include/capi/cef_task_capi.h
See also the original CEF documentation in cef / include / capi / cef_task_capi . h