Questions tagged [interception]
174 questions
2
votes
1 answer
Interception in MEF composition and import selection
everyone
The problem is if there exists two exported components which have the same export signature but only one should be imported ( this is possible, the practical example is install new plugin to replace the old one without uninstall the old…

Simon. Li
- 404
- 2
- 11
2
votes
1 answer
Postman cookies not set for subdomain (Postman Inceptor, Postman Native App)
i am playing around with Postman to get some insight on how things work behind the curtain and ran into, what I believe, is an issue but wanted to ask before I create a new issue on GitHub.
I am intercepting the request from my browser to the same…

Medre
- 21
- 2
2
votes
0 answers
Chain HttpMessageHandler for HttpClient in the correct way
How do I have to chain my HttpMessageHandlers for the HttpClient to reach my following goal.
I am using the SocketsHttpHandler as my inner HttpMessageHandler for HttpClient with cookie support. On top of the handler I wrote my own LoggingHttpHandler…

BlackMatrix
- 474
- 5
- 19
2
votes
2 answers
Python intersection of arrays in dictionary
I have dictionary of arrays as like:
y_dict= {1: np.array([5, 124, 169, 111, 122, 184]),
2: np.array([1, 2, 3, 4, 5, 6, 111, 184]),
3: np.array([169, 5, 111, 152]),
4: np.array([0, 567, 5, 78, 90, 111]),
5:…

Cindy
- 568
- 7
- 20
2
votes
1 answer
Configure unity interception after container initialization
I have a unity container that's configured via a XML file. After it's configured I want to add some interception to certain types via code. how can this be done? I have the following behavior:
using System;
using System.Collections.Generic;
using…

Carles Company
- 7,118
- 5
- 49
- 75
2
votes
1 answer
What is the static version of propertyMissing method in Groovy?
ok - tried looking /reading and not sure i have an answer to this.
I have a Utility class which wraps a static ConcurrentLinkedQueue internally.
The utility class itself adds some static methods - i dont expect to call new to create an instance of…

WILLIAM WOODMAN
- 1,185
- 5
- 19
- 36
2
votes
1 answer
How to disable image loading in CEF/JCEF?
Is there a switch/flag that allows to do this? I spent hours finding those but couldn't find anything that works. The other thing I'm planning to do is intercept the cefRequest by adding my own CefRequestHandler, examine the resource type and if it…
user5818995
2
votes
1 answer
Getting Attribute Value on Member Interception
I have this CacheAttribute that accepts Duration Value like such
public class MyTestQuery : IMyTestQuery
{
private readonly ISomeRepository _someRepository;
public TestQuery(ISomeRepository someRepository)
{
_someRepository =…

Raymund
- 7,684
- 5
- 45
- 78
2
votes
1 answer
Castle Windsor Interceptor
I'm trying to use the code from this page, http://docs.castleproject.org/Windsor.Introduction-to-AOP-With-Castle.ashx and register an interceptor in a fluent manner.
But I get this error thrown. I've tried Castle Windsor versions from 2.5 to 3.3. So…

Chris Noring
- 471
- 3
- 9
2
votes
4 answers
How can I write Interceptor (AOP) with Castle Core or Other libraries (just free libraries) for Cross Cutting Concerns
I want to have an attribute like this for Cross Cutting Concerns like Logging , Exception , ...
public class MyService
{
[Log] // Interception (AOP)
[ExceptionHandler] // Interception (AOP)
public void DoSomething()
{
}
}
I know that I can…

hhh fff
- 21
- 1
- 2
2
votes
1 answer
LD_PRELOAD - possible to intercept primitive operators like + and -?
Is it possible to intercept primitive operations (+,-,% etc.) like this one, with LD_PRELOAD?
int64_t endWhenNsec = startWhenNsec + gTimeLimitSec;
If not, any way to achieve something similar?

Martin L.
- 3,006
- 6
- 36
- 60
2
votes
2 answers
Calling functions on intercepted method invocations in Simple Injector
What I am trying to achieve is to intercept the injection of a class, and call a specific method on the class to alter it's behaviour.
I have implemented the interceptor class that is given on the SimpleInjector website, and this is working, so I am…

Thewads
- 4,953
- 11
- 55
- 71
2
votes
1 answer
Highcharts - Get crossing point of crossing series
I am currently trying to extract the points of multiple crossings of series (a,b,c,d) of a specific series (x). I can't seem to find any function that can aid me in this task.
My best bet is to measure the distance of every single point in x with…

Marc Pilgaard
- 588
- 1
- 5
- 20
2
votes
1 answer
AOP Ninject Stop Intercepted Method From Being Called
I'm using Ninject and AOP to do some caching. I have a Attribute that I can apply to any method in my repository and on BeforeInvoke it will return my cached Object if there is one and AfterInvoke create a cached object. This all works great but I…

Joshy
- 657
- 8
- 20
2
votes
0 answers
Trying to fake a Strong Named Assembly, but "manifest definition does not match"
I'd like to intercept the communication between a plug-in and a host assembly.
I've tried to load ThirdPartyPlugin.dll into an AppDomain sandbox (code below), to intercept its attempts at loading of HostLibrary.dll assembly (I'm using trick with…

akavel
- 4,789
- 1
- 35
- 66