本文整理汇总了C#中Chromium.Remote.RemoteConnection类的典型用法代码示例。如果您正苦于以下问题:C# RemoteConnection类的具体用法?C# RemoteConnection怎么用?C# RemoteConnection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RemoteConnection类属于Chromium.Remote命名空间,在下文中一共展示了RemoteConnection类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadRequest
internal void ReadRequest(RemoteConnection connection)
{
if(returnImmediately) {
ReadArgs(connection.streamHandler);
WorkerPool.EnqueueTask(() => ExecutionThreadEntry(connection));
return;
}
var h = connection.streamHandler;
h.Read(out remoteThreadId);
h.Read(out localThreadId);
ReadArgs(h);
if(localThreadId != 0) {
var call = connection.callStack.Peek(localThreadId);
lock(call.waitLock) {
call.reentryCall = this;
System.Threading.Monitor.PulseAll(call.waitLock);
}
} else {
WorkerPool.EnqueueTask(() => ExecutionThreadEntry(connection));
}
}
示例2: ExecuteInTargetProcess
protected override void ExecuteInTargetProcess(RemoteConnection connection)
{
var self_local = (CfxRequest)RemoteProxy.Unwrap(self);
self_local.Url = value;
}
示例3: ExecuteInTargetProcess
protected override void ExecuteInTargetProcess(RemoteConnection connection)
{
__retval = CfxV8Context.InContext();
}
示例4: ExecuteInTargetProcess
protected override void ExecuteInTargetProcess(RemoteConnection connection)
{
var e = (CfxOnRegisterCustomSchemesEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);
value = RemoteProxy.Wrap(e.Registrar);
}
示例5: ExecuteInTargetProcess
protected override void ExecuteInTargetProcess(RemoteConnection connection)
{
var e = (CfxOnLoadErrorEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);
value = RemoteProxy.Wrap(e.Frame);
}
示例6: ExecuteInTargetProcess
protected override void ExecuteInTargetProcess(RemoteConnection connection)
{
__retval = CfxRuntime.ExecuteProcessInternal((CfxApp)RemoteProxy.Unwrap(application));
}
示例7: ExecuteInTargetProcess
protected override void ExecuteInTargetProcess(RemoteConnection connection)
{
var self_local = (CfxProcessMessage)RemoteProxy.Unwrap(self);
__retval = self_local.IsValid;
}
示例8: CfxRemoteCallContext
internal CfxRemoteCallContext(RemoteConnection connection, int threadId)
{
this.connection = connection;
ThreadId = threadId;
}
示例9: ExecuteInTargetProcess
protected override void ExecuteInTargetProcess(RemoteConnection connection)
{
__retval = RemoteProxy.Wrap(CfxBinaryValue.Create(data, dataSize));
}