当前位置: 首页>>代码示例>>C#>>正文


C# Remote.RemoteConnection类代码示例

本文整理汇总了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));
            }
        }
开发者ID:xmcy0011,项目名称:NanUI,代码行数:24,代码来源:RemoteCall.cs

示例2: ExecuteInTargetProcess

 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var self_local = (CfxRequest)RemoteProxy.Unwrap(self);
     self_local.Url = value;
 }
开发者ID:xmcy0011,项目名称:NanUI,代码行数:5,代码来源:CfxRequestRemoteCalls.cs

示例3: ExecuteInTargetProcess

 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = CfxV8Context.InContext();
 }
开发者ID:xmcy0011,项目名称:NanUI,代码行数:4,代码来源:CfxV8ContextRemoteCalls.cs

示例4: ExecuteInTargetProcess

 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var e = (CfxOnRegisterCustomSchemesEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);
     value = RemoteProxy.Wrap(e.Registrar);
 }
开发者ID:xmcy0011,项目名称:NanUI,代码行数:5,代码来源:CfxAppRemoteCalls.cs

示例5: ExecuteInTargetProcess

 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var e = (CfxOnLoadErrorEventArgs)BrowserProcessCall.GetEventArgs(eventArgsId);
     value = RemoteProxy.Wrap(e.Frame);
 }
开发者ID:xmcy0011,项目名称:NanUI,代码行数:5,代码来源:CfxLoadHandlerRemoteCalls.cs

示例6: ExecuteInTargetProcess

 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = CfxRuntime.ExecuteProcessInternal((CfxApp)RemoteProxy.Unwrap(application));
 }
开发者ID:xmcy0011,项目名称:NanUI,代码行数:4,代码来源:RenderProcessCall.cs

示例7: ExecuteInTargetProcess

 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     var self_local = (CfxProcessMessage)RemoteProxy.Unwrap(self);
     __retval = self_local.IsValid;
 }
开发者ID:xmcy0011,项目名称:NanUI,代码行数:5,代码来源:CfxProcessMessageRemoteCalls.cs

示例8: CfxRemoteCallContext

 internal CfxRemoteCallContext(RemoteConnection connection, int threadId)
 {
     this.connection = connection;
     ThreadId = threadId;
 }
开发者ID:xmcy0011,项目名称:NanUI,代码行数:5,代码来源:CfxRemoteCallContext.cs

示例9: ExecuteInTargetProcess

 protected override void ExecuteInTargetProcess(RemoteConnection connection)
 {
     __retval = RemoteProxy.Wrap(CfxBinaryValue.Create(data, dataSize));
 }
开发者ID:xmcy0011,项目名称:NanUI,代码行数:4,代码来源:CfxBinaryValueRemoteCalls.cs


注:本文中的Chromium.Remote.RemoteConnection类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。