public BrowserProcessService() { var context = OperationContext.Current; host = (BrowserProcessServiceHost)context.Host; javascriptObjectRepository = host.JavascriptObjectRepository; }
public BrowserProcessServiceHost(JavascriptObjectRepository javascriptObjectRepository, int parentProcessId, int browserId) : 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; }
public ConcurrentMethodRunnerQueue(JavascriptObjectRepository repository) { this.repository = repository; }
protected override void OnClosed() { base.OnClosed(); JavascriptObjectRepository = null; }
protected override void OnClosed() { base.OnClosed(); JavascriptObjectRepository = null; operationContextTaskCompletionSource = null; }
public MethodRunnerQueue(JavascriptObjectRepository repository) { this.repository = repository; }