public BrowserProcessServiceHost(JavascriptObjectRepository 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 JavascriptCallbackEndpointBehavior(IJavascriptCallbackFactory callbackFactory) { this.callbackFactory = callbackFactory; }
public JavascriptCallbackSurrogate(IJavascriptCallbackFactory callbackFactory) { this.callbackFactory = callbackFactory; }
public JavascriptCallbackSurrogate(IJavascriptCallbackFactory callbackFactory) { this.callbackFactory = callbackFactory; }
public BrowserProcessServiceHost(JavascriptObjectRepository 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 JavascriptCallbackEndpointBehavior(IJavascriptCallbackFactory callbackFactory) { this.callbackFactory = callbackFactory; }