public BrowserProcessService() { var context = OperationContext.Current; host = (BrowserProcessServiceHost)context.Host; javascriptObjectRepository = host.JavascriptObjectRepository; }
public BrowserProcessServiceHost(IJavascriptObjectRepositoryInternal javascriptObjectRepository, int parentProcessId, int browserId, IJavascriptCallbackFactory callbackFactory) : base(typeof(BrowserProcessService), new Uri[0]) { JavascriptObjectRepository = javascriptObjectRepository; var serviceName = RenderprocessClientFactory.GetServiceName(parentProcessId, browserId); Description.ApplyServiceBehavior(() => new ServiceDebugBehavior(), p => p.IncludeExceptionDetailInFaults = true); var binding = CreateBinding(); var endPoint = AddServiceEndpoint( typeof(IBrowserProcess), binding, new Uri(serviceName) ); endPoint.Contract.ProtectionLevel = ProtectionLevel.None; endPoint.Behaviors.Add(new JavascriptCallbackEndpointBehavior(callbackFactory)); }
public MethodRunnerQueue(IJavascriptObjectRepositoryInternal repository) { this.repository = repository; }
protected override void OnClosed() { base.OnClosed(); JavascriptObjectRepository = null; }