mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
made parent processid private
This commit is contained in:
@@ -39,18 +39,17 @@ namespace CefSharp.Internals
|
||||
return;
|
||||
}
|
||||
|
||||
var parentProcessId = channelArgument
|
||||
var parentProcessIdString = channelArgument
|
||||
.Substring(channelPrefix.Length)
|
||||
.Split('.')
|
||||
.First();
|
||||
ParentProcessId = int.Parse(parentProcessId);
|
||||
parentProcessId = int.Parse(parentProcessIdString);
|
||||
}
|
||||
|
||||
|
||||
private SubProcessServiceHost javascriptServiceHost;
|
||||
private CefBrowserBase browser;
|
||||
|
||||
public int? ParentProcessId { get; private set; }
|
||||
private int? parentProcessId;
|
||||
|
||||
public CefBrowserBase Browser
|
||||
{
|
||||
@@ -66,12 +65,12 @@ namespace CefSharp.Internals
|
||||
{
|
||||
browser = cefBrowserWrapper;
|
||||
|
||||
if (ParentProcessId == null)
|
||||
if (parentProcessId == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Task.Factory.StartNew(() => javascriptServiceHost = SubProcessServiceHost.Create(ParentProcessId.Value, cefBrowserWrapper.BrowserId));
|
||||
Task.Factory.StartNew(() => javascriptServiceHost = SubProcessServiceHost.Create(parentProcessId.Value, cefBrowserWrapper.BrowserId));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user