From 0abd868f87bdfd44f83967c97dd383afaef53630 Mon Sep 17 00:00:00 2001 From: JanEggers Date: Thu, 12 Jun 2014 21:06:04 +0200 Subject: [PATCH] made parent processid private --- CefSharp/Internals/CefSubprocess.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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