diff --git a/CefSharp/Internals/CefSubprocess.cs b/CefSharp/Internals/CefSubprocess.cs index 63523b3da..d98b7664d 100644 --- a/CefSharp/Internals/CefSubprocess.cs +++ b/CefSharp/Internals/CefSubprocess.cs @@ -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)); } } } \ No newline at end of file