Questions tagged [interception]
174 questions
3
votes
4 answers
Cypress cy.wait() only waits for the first networkcall, need to wait for all calls
I would like to wait until the webpage is loaded with items. Each is getting retreived with a GET.
And I would like to wait on all these items until the page is loaded fully. I already made a interceptions for these. Named: 4ItemsInEditorStub
I have…

E. E. Ozkan
- 149
- 10
3
votes
2 answers
Can you throttle requests rather than responses in Cypress?
I am trying to end to end test a file upload page in Cypress, which includes testing if a file upload progress bar works.
Unfortunately, in the local environment the upload happens instantly so the progress bar is not shown.
I am aware that you can…

Rory
- 2,175
- 1
- 27
- 37
3
votes
2 answers
Unity Interception: How to pass parameter into ICallHandler implementation?
Can I pass message parameter to ICallHandler implementation like this:
var logic = container.Resolve(message);
And use it like this:
IMethodReturn ICallHandler.Invoke(IMethodInvocation input, GetNextHandlerDelegate getNext)
{
…

Pavels Ahmadulins
- 430
- 5
- 16
3
votes
3 answers
Intercepting 64-bit Linux kernel function: Length of a function pointer at 32/64-bit?
I'm trying to re-implement old-as-behemoth kernel intercept (described at this Phrack issue).
The code to replace 32-bit function call is like:
#define SYSMAPADDR 0x12345678
#define CODESIZE 7
static char acct_code[7] = "\xb8\x00\x00\x00\x00"/*movl…

kagali-san
- 2,964
- 7
- 48
- 87
3
votes
3 answers
Unity InterfacesInterceptor in .NET Core
I'll start out with the questions first and follow up with context:
Is there a version of Unity.Interception available that is compatible with .NET Core?
Is there a .NET Core compatible alternative to Unity.Interception?
I am looking at using the…

Sigurd Garshol
- 1,376
- 3
- 15
- 36
3
votes
3 answers
Entity Framework 7 Interceptor
I Have a Multi-Tenant application and how can I use Interception in Entity Framework 7?
In Entity Framework 6, exists Interception using System.Data.Entity.Infrastructure.Interception, but don't find in version 7 of the Entity Framework.
Here's an…

Sérgio R Silva
- 101
- 1
- 4
3
votes
1 answer
How to Capture the Windows Message that is Sent from this Menu?
In most applications, when you click some MenuItem, a WindowsMessage is sent (usually WM_COMMAND), with a wParam representing the ID of the chosen MenuItem.
There is a certain program that has a Window Menu (the menu accessible via clicking the…

spaceman
- 1,061
- 1
- 11
- 31
3
votes
2 answers
Castle windsor intercepter
I am trying to intercept calls to the Handle method on my command handlers.
this process works fine when I explicitly register each command handler, the problem is that my generic registration of the command handlers and the interceptor is not…

Farhad-Taran
- 6,282
- 15
- 67
- 121
3
votes
1 answer
Intercepting file access
I have a program (a game, really), which uses a .wad file to store its resources. Is it possible to somehow intercept access to this file, and emulate it?
For instance, I want to dynamically replace some sprites. Instead of creating a new file, is…

RomaValcer
- 2,786
- 4
- 19
- 29
3
votes
1 answer
Adding interception on existing registration
In this scenario I my application is handed an already initialized UnityContainer on which has been registered a type which boils down to this:
container.RegisterType(new InjectionFactory(c => new Service()));
What I need to achieve is…

Sigurd Garshol
- 1,376
- 3
- 15
- 36
3
votes
2 answers
Interception Using StructureMap 3.*
I've done interception using Castle.DynamicProxy and StructureMap 2.6 API but now can't do it using StructureMap 3.0. Could anyone help me find updated documentation or even demo? Everything that I've found seems to be about old versions. e.g.…

pangular
- 699
- 7
- 27
3
votes
3 answers
Check finite line interception C
Im trying to make a function that checks if two finite lines cross each other ( returns 0 or 1 ).
First of all I declare these structs
typedef struct _Point{
double x;
double y;
}point;
typedef struct _Line{
int numVertex;
point…

Matheus Couto
- 33
- 4
3
votes
3 answers
Unity Interception GetCustomAttribute
Thanks in advance for your help! (Yes, there's a question at the bottom)
I'm using Unity 3.x Interception to perform AOP pre and post database connection and transaction activities. The database interceptor is always instantiated and the…

Werewolf
- 472
- 3
- 11
3
votes
1 answer
Autofac using DynamicProxy2 Interception with WcfIntegration
I'm struggling to wire up a service interface using WcfIntegration with an IInterceptor.
There are examples for each in the autofac documentation but nothing that combines the two.
Here is the documentation for the WcfIntegration and look here for…

jflood.net
- 2,446
- 2
- 21
- 19
2
votes
2 answers
Registering WCF service in Unity Container
I have a wcf service library that is hosted in a windows service. I need to intercept calls to
Service methods. For this case it is suggested to register WCF into Unity container as can be seen in this…

berkayk
- 194
- 2
- 10