コード例 #1
0
        public BrowserProcessService()
        {
            var context = OperationContext.Current;
            host = (BrowserProcessServiceHost)context.Host;

            javascriptObjectRepository = host.JavascriptObjectRepository;
        }
コード例 #2
0
        public BrowserProcessService()
        {
            var context = OperationContext.Current;

            host = (BrowserProcessServiceHost)context.Host;

            javascriptObjectRepository = host.JavascriptObjectRepository;
        }
コード例 #3
0
        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;
        }
コード例 #4
0
        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;
        }
コード例 #5
0
 public ConcurrentMethodRunnerQueue(JavascriptObjectRepository repository)
 {
     this.repository = repository;
 }
コード例 #6
0
 protected override void OnClosed()
 {
     base.OnClosed();
     JavascriptObjectRepository = null;
 }
コード例 #7
0
 protected override void OnClosed()
 {
     base.OnClosed();
     JavascriptObjectRepository = null;
     operationContextTaskCompletionSource = null;
 }
コード例 #8
0
 protected override void OnClosed()
 {
     base.OnClosed();
     JavascriptObjectRepository           = null;
     operationContextTaskCompletionSource = null;
 }
コード例 #9
0
 public MethodRunnerQueue(JavascriptObjectRepository repository)
 {
     this.repository = repository;
 }
コード例 #10
0
 protected override void OnClosed()
 {
     base.OnClosed();
     JavascriptObjectRepository = null;
 }