Questions tagged [castle-dynamicproxy]

Castle DynamicProxy is a library for generating lightweight .NET 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.

Castle DynamicProxy is a library for generating lightweight .NET 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.

Resources

335 questions
0
votes
1 answer

registered a NHibernate proxy factory fot IDataErrorInfo behavoir with lazy properties

I have implemented IDataErrorInfo interface using Castle.DynamicProxy IIterceptor. I have also implemented a NHibernate interceptor which instantiates my entities using this interceptor. I wish to implement IDataErrorInfo for lazyload proprerties…
guton
  • 43
  • 6
0
votes
1 answer

NHibernate - Creating a proxy instance failed

My data model looks like this. public abstract class BasePivotField { public virtual int SystemId { get; set; } public virtual int Version { get; set; } public virtual string FieldName { get; set; } public virtual…
Zuber
  • 577
  • 1
  • 11
  • 29
0
votes
2 answers

Self-proxying constructor with Castle?

Is it possible for a class's constructor to wrap a proxy around itself? This code, unfortunately, causes a StackOverflowException. void Main() { var thing = new Thing(); } public static readonly ProxyGenerator generator = new…
Alex Dresko
  • 5,179
  • 3
  • 37
  • 57
0
votes
2 answers

ObjectDataSource fails to bind list when NHibernate Proxy object if on the first position

I have a select method for ObjectDataSource: public static IEnumerable Select() { var cycleRepo = new RbaCycleRepository(Global.sessionFactory.GetCurrentSession()); RbaCycle lacOpenCycle =…
dragonfly
  • 17,407
  • 30
  • 110
  • 219
0
votes
1 answer

Retaining Base Class Attributes in Dynamic Proxies

I am using Castle DynamicProxy2. Is it possible to tell proxy object to inherit attributes on its Base Class(proxied class) and attributes on Properities of Base class. If not possible in Castle. Any other library for this purpose?? I have posted…
Deepak N
  • 2,561
  • 2
  • 30
  • 44
1 2 3
22
23