Questions tagged [linfu-dynamicproxy]

LinFu DynamicProxy is a library for generating proxies on the fly at runtime.

LinFu DynamicProxy is a library for generating proxies on the fly at runtime.

Proxy objects allow calls to members of an object to be intercepted without modifying the code of the class.

More information is available in a CodeProject article by the framework author.

11 questions
31
votes
3 answers

What are the differences between LinFu.DynamicProxy and Castle.DynamicProxy?

I am looking at adding logic to a library I am working on that would require the need for a Dynamic Proxy. I would like to get some advice from user's who have used these two library's in a production environment. Does one out perform the other,…
Dale Ragan
  • 18,202
  • 3
  • 54
  • 70
21
votes
2 answers

NHibernate.ByteCode.LinFu.dll For NHibernate 3.2

Where can I find the latest version of NHibernate.ByteCode.LinFu.dll that is compiled against NHibernate 3.2?
sternr
  • 6,216
  • 9
  • 39
  • 63
4
votes
1 answer

Ninject Interception dynamic proxy problems

I'm trying to set up interception to work with Ninject which we have been using as our dependency injection framework for a while. I have downloaded the interception extension from NuGet and tried it with both the Castle Dynamicproxy implementation…
3
votes
1 answer

Nhibernate does not work after upgrade to version 2.1.2

I recently changes my NHibernate implementation from Version 2.1.0 to 2.1.2. For lazy loading I used the LinFu implementation using : NHibernate.ByteCode.Linfu. Since I changed to the newest version I got the following error: [SecurityException:…
Jan
  • 9,858
  • 7
  • 26
  • 33
3
votes
1 answer

Using Automapper with LinFu.DynamicProxy in commercial application

We want to use Automapper in commercial application (.NET 3.5). To get the clearance we need the source code of automapper. We got the required automapper source code but after building the code we found that the size of automapper.dll 86KB while…
Ram
  • 11,404
  • 15
  • 62
  • 93
2
votes
0 answers

Backing field for collection is null when using LinFu ProxyFactoryFactory in NHibernate

I am having a problem when I try switching from the Castle ProxyFactoryFactory to the LinFu ProxyFactoryFactory in NHibernate. I have an entity like this: public class Foo { private ISet _bars = new HashedSet(); public virtual…
cbp
  • 25,252
  • 29
  • 125
  • 205
1
vote
1 answer

Where to find the LinFu bytecode provider for NH3.2?

It's not included within the 3.2 release of NHibernate and I cannot find it anywhere. Where can it be found?
the_drow
  • 18,571
  • 25
  • 126
  • 193
1
vote
2 answers

How to intercept, parse and compile?

This is a problem I've been struggling to solve for a while. I need a way to either replace code in the method with a parsed code from the template at compile time (PostSharp comes to mind) or to create a dynamic proxy (Linfu or Castle). So given a…
1
vote
0 answers

Lin Fu Interceptor

How can i implement automatic InotifypropertyChanged with LinFu?
Lucious
  • 11
  • 2
0
votes
1 answer

Can I use Linfu dynamic proxy to proxy an interface with generic parameters?

I am currently using Linfu to create dynamic proxys, and it works really well for normal interfaces. The problem is I now need to create a dynamic proxy for an interface with generic parameters. I do not know the types of the generic parameters (or…
Franchesca
  • 1,453
  • 17
  • 32