Questions tagged [interception]
174 questions
0
votes
1 answer
Comparing methods from MethodInfo and IMethodInvocation
I am using aspect-oriented programing to implement logging system. So, when the method being invoked I intercepting that call and get to that function:
private IEnumerable GetLogMessageFromAttribute(IMethodInvocation input)
{
…

Anton Anpilogov
- 141
- 5
0
votes
1 answer
Invoking Bean method from Camel without binding/handling exchange
Is it possible to use a bean that is not bound to any exchange and just triggers some kind of service start method in the middle of a Camel interception?
interceptFrom("a").bean(service, "method")
with method looking like
public void method() {
…

javanoob
- 243
- 1
- 10
0
votes
0 answers
random lost key input on hooks
i have an HID usb rfid reader that act like a keyboard,
i don't want to put a textbox on my form (WPF) to recieve the text from it because i have other requirements .
instead i am trying to capture the key pressed events and process them . for that…

user2475096
- 350
- 3
- 19
0
votes
3 answers
AutoFac Interception, how to differentiate the inner from outer
So I'm trying to implement the concept of interception, while using autofac. I'm not doing anything fancy, like implementing dynamic interception, every class I have concrete code around.
My Code (not my real code, I found this online but it…

raterus
- 1,980
- 20
- 23
0
votes
0 answers
Is there a way to intercept all requests made with javascript and modify the send URL?
I am writing a small web service that takes in a URL for a web page and loads it on another domain, after adding some content.
One major problem one runs into when doing this is the use of relative URLs, especially so in javascript land. If a…

gdoug
- 715
- 1
- 5
- 16
0
votes
1 answer
Finding the gradient and interception point in Matlab
I have a problem finding the interception point from a log-log plot in Matlab using the "least square method".
I have the following in Matlab:
a=[69.5;94.5;128.5];
b=[11.12;10.21;9.34];
loglog(a,b)
C=polyfit(log(a),log(b),1)
My objective is to find…

David
- 159
- 8
0
votes
1 answer
How can I get a list of all APIs used by particular process (Windows 7)
I use C++ to address the following task:
I'd like to get the list of all API functions, which are used by the particular process. It can be any Windows 7 process - 32 or 64 including system processes.
So far, the only solution I see - is to create a…

Konstantin P.
- 11
- 1
- 1
- 5
0
votes
2 answers
git push behind proxy with ssl interception
My git client is behind a company proxy. That proxy makes ssl interception.
I managed to suppress the SSL Certificate Problems with git config --global http.sslcainfo PATH-TO-PROXY-CA-CERT
Now I can clone repositories from…

Benedikt Bock
- 1,007
- 15
- 37
0
votes
1 answer
How to intercept parent class method by resolving derived class?
Below is my parent class
public class Parent
{
//This method is intercept-able using **VirtualMethodInterceptor**
public virtual void Test()
{
//Do something
}
}
Below is my child class
public class Child:Parent
{
// This method…

shou
- 143
- 1
- 1
- 6
0
votes
3 answers
Intercept an instance using Unity? Globally intercept a specific type
Im looking for a way to always intercept an instance of a specific class as soon as its properties are used..
For instance if MyTestClass would be intercepted..this would trigger the interception:
var myObj = new MyTestClass();
var x =…

Inx51
- 1,911
- 3
- 24
- 44
0
votes
1 answer
Autofac.Extras.DynamicProxy2 With Autofac 3.5.2
I have 2 projects in my solution.
One uses Autofac 3.5.2 and the other is used Autofac.Extras.DynamicProxy2 for interception (Autofac 3.3.1).
The one with Autofac 3.3.1 has project reference to the one with Autofac 3.5.2.
Trying to run different…

Roi Shabtai
- 2,981
- 2
- 31
- 47
0
votes
0 answers
Castle Interception. How to specify kind of Proxy using fluent API and InterceptorAttribute
Castle supports different kinds of Dynamic Proxy. How can I setup kind of proxy to use, when
regestering a component with WindsorContainer
using InterceptorAttribute?

Igor
- 131
- 1
- 9
0
votes
0 answers
Best way to do logging using Unity Interception in WCF
I have a WCF service and I have read that it might be good to use Unity Interception to do logging. I want to log errors and also every request and response that comes into the WCF app into the database. So I plan to create a logging class that I…

tjp69
- 1,068
- 9
- 13
0
votes
1 answer
Initialising configurable objects with dependency injection container
I am trying to find the best way to initialise device drivers (maintained by production staff). Configuration generally contains serial ports and other information which production staff may need to change if the underlying hardware for the device…

resp78
- 1,414
- 16
- 37
0
votes
1 answer
Can attributes implement an interface?
I am using Unity Container for interception
and so am trying to add a [Trace] attribute, e.g.
public class TraceAttribute : HandlerAttribute
and then in code, I can use it like so:
public class MyClass
{
[Trace]
public void DoSomething()
…

Raymond
- 3,382
- 5
- 43
- 67