Questions tagged [interception]
174 questions
1
vote
1 answer
Autofac Interception async execution order
So I have this class:
public class MappingBootstrap : IMappingBootstrap
{
public virtual async Task Map()
{
// Order is very important
await this.mapper1.Map();
await this.mapper2.Map();
await…

Callum Linington
- 14,213
- 12
- 75
- 154
1
vote
1 answer
DI Interception vs. AOP
From Unity documentation:
Unity interception enables you to effectively capture calls to objects and add additional functionality to the target object. Interception is useful when you want to modify the behavior for individual objects but not the…

Alexander Christov
- 9,625
- 7
- 43
- 58
1
vote
1 answer
Prolog intersection of three lists
please can give some of you advice about interception of three lists in Prolog?
I done interception of two lists:
prunik([], _, []).
prunik([H1|T1], L2, [H1|Res]) :-
member(H1, L2),
prunik(T1, L2, Res).
prunik([_|T1], L2, Res) :-
…

Andrea Owczarzová
- 11
- 1
1
vote
1 answer
Sending mouse clicks/sending coordinates with the Oblita/Interception library?
I'm currently using the Interception library on some projects, and it would highly useful if I was able to send coordinates and simulate mouse clicks within the existing code. I know there are things within the currently library that support doing…

Fiend
- 11
- 3
1
vote
2 answers
Unable to intercept Android hybrid application HTTPS traffic using burp suite
I am unable to intercept https traffic of one of the android thick client application which I am working. However I am able to intercept https traffic of other applications. This application is made on IBM worklight framework. Please find below…

Cyril James
- 11
- 3
1
vote
1 answer
Register instance for interception in Unity
For my Unit Tests I am currently mocking my interceptor and intercepted classes using Moq, then registering the intercepted instance in Unity and setting the default interceptor for the interface. I then resolve the instance and call methods on the…

Alex Wiese
- 8,142
- 6
- 42
- 71
1
vote
1 answer
Catching exception of ApiController in Ninject Interceptor
Hi i have a problem with exception handling in ApiController.
I have Ninject interceptor bound to Controller actions the problem is that interceptor never sees any exception that was thrown in/bellow Controller.
public class ControllerInterceptor :…

user2184057
- 924
- 10
- 27
1
vote
1 answer
Entity Framework Interceptor adding entity
I am using EF 6 and attempting to use the IDbCommandInterceptor from the System.Data.Entity.Infrastructure.Interception namespace.
It works well for reading, and updating, however when I add a new entity to the database, the NonQueryExecuted() does…

sevargdcg
- 295
- 2
- 8
- 17
1
vote
1 answer
PostSharp Field Interception to Encrypt and Decrypt
Using PostSharp I would like to do Encryption/Decryption on Field Interception
I have a Class
public class guestbookentry
{
[Encryption] // This Attribute has to Encrypt and Decrypt
public string Message { get; set; }
public…

Prashanth
- 31
- 5
1
vote
1 answer
Is it possible to intercept private methods using unity 3.0?
I want to inject some aspects in to methods/properties regardless whether it is private, public or protected.
I have gone through many blogs and forums and couldn't find a helpful article on this.
Can any one guide me on this ?

user2798683
- 51
- 4
1
vote
7 answers
AOP programming in .Net?
I'm wondering what's good out there for AOP / crosscutting in .Net, along the lines of AspectJ. I see Microsoft has a Policy Injection Application Block; any other good stuff out there I should take a look at?

larryq
- 15,713
- 38
- 121
- 190
1
vote
1 answer
Use Ninject to Automatically generate classes
let's think of an Interface like this:
public interface ITest
{
void DoSomething();
}
I don't want to implement this interface, and ask Ninject to generate a proxy class implementing it. Then Intercept DoSomething method. Is it possible?

themehrdad
- 169
- 4
- 12
1
vote
1 answer
Unity Interception with WPF and INotifyPropertyChanged
I've been doing a refactor of an existing application, and I am attempting to use an Attribute on a property to trigger the NotifyPropertyChanged event using Unity interception. I got to the point where the event was firing, but the controls were…

AStouder
- 75
- 6
1
vote
0 answers
Unity.WebApi Error : Type passed must be an interface
So I have a Unity.WebApi installed on my MVC Application.
There is also a web api section in a folder called "Areas".
I'm in the process of wiring things up to implement caching via policy injection and attributes on the Web Api.
Here's my…

coolcat21
- 11
- 1
1
vote
1 answer
Is there any way to intercept all Linq to SQL queries?
I've built some code that can rebuild expression trees so I can avoid triggering the no supported translation to SQL exception and it works fine as long as I call my function to replace the iqueryable. The problem is that I'd like it to…

wizzardmr42
- 1,634
- 12
- 22