problem about castle-dynamicproxy-Collection of common programming errors


  • peer
    nhibernate castle-dynamicproxy dynamic-proxy
    I’m working on a problem in which I have a number of entities, each of which has a corresponding one-to-many translations table, which specify the localized versions of entity’s fields. (all of this is legacy schema I’m adding a map on top of). For example:EventIDEventTranslationEventID Language Title other fieldsSo, if I were going to render my information in Greek, I’d join the two tables and specify Language = ‘Greek’ and have all the right stuff.What I’m trying to do is build on-the-fly mixi

  • Rafael Steil
    c# generics mono moq castle-dynamicproxy
    I found a really strange problem while creating unit tests that only occurs with the Mono runtime (Xamarin on Mac included), but runs fine within Visual Studio. I isolated it as far as I could, and I reached a point that I can’t tell if it is a bug with Mono, Moq or Castle DinamicProxy, although it only crashes when using the Mono runtime. This is the code:using System; using System.Collections.Generic; using Moq;namespace ConsoleApplication1 {public interface ISomething<T>{List<T> D

  • Davide Icardi
    c# json.net signalr castle-dynamicproxy
    I have some problems invoking a signalr hub when the returned object is a Castle DynamicProxy.Let’s say that I have the following server code on the signalr hub (this is not the real code but just to show the problem):public Article Read() {var article = new Article(0);return article; } public class Article {public Article(int id){Id = id;}public int Id { get; set; } }The above method correctly returns my object. If I change this code to:public Article Read() {var proxyGenerator = new Castle.Dyn

  • Ruben Bartelink
    c# .net dependency-injection ninject castle-dynamicproxy
    I trying to build nice architecture for my project and I decided to use Ninject as DI and Castle project dinamic proxy to add the caching for my repositories. Unfortunatly I get a exception. Here is my code:public class NinjectImplementation : NinjectModule {public override void Load(){// Binding repositoriesvar assembly = Assembly.GetAssembly(typeof(UserRepository));var types = assembly.GetTypes().Where(t => t.Name.EndsWith(“Repository”) && !t.Name.StartsWith(“I”));ProxyGenerator gen

  • Sebastian K
    c# .net castle-dynamicproxy
    I am probably missing something extremely simple.I am just trying to write a very minimalistic example of usage of DynamicProxy – I basically want to intercept the call and display method name and parameter value. I have code as follows:public class FirstKindInterceptor : IInterceptor {public void Intercept(IInvocation invocation){Console.WriteLine(“First kind interceptor before {0} call with parameter {1} “, invocation.Method.Name, invocation.Arguments[0]);invocation.Proceed();Console.WriteLine

  • mrblah
    nhibernate castle castle-dynamicproxy
    So I pulled the source from https://svn.castleproject.org/svn/castle/DynamicProxy/trunk/Open it up in vs.net 2008problems:vs.net can’t open the assembly.cs assembly signing failedWhat am I doing, rather NOT doing?UpdateSo I downloaded nant, setup the .bat file in my PATH so it works in cmd prompt.I ran:nant default.buildGetting this error:build failed, \buildscripts\common-project.xml (48,3) invalid element . Unknown task or datatype.How exactly do I build the dynamicProxy project now?update Th