Questions tagged [linfu]

LinFu is a framework that adds mixins, inversion of control, DbC, and other language features to the Common Language Runtime.

LinFu is a framework that adds mixins, inversion of control, DbC, and other language features to the Common Language Runtime.

More information can be found at GitHub as well as in several articles by the framework's author on Code Project.

15 questions
5
votes
2 answers

castle dynamic proxy creation

I am implementing a design where my layer would sit between client and server, and whatever objects i get from server, i would wrap it in a transparent proxy and give to the client, that way i can keep a track of what changed in the object, so when…
np-hard
  • 5,725
  • 6
  • 52
  • 76
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
3 answers

Duck typing / dynamic proxies on existing instances of objects

I have an object handed into our library and passed through various processes. I need to attach some additional information to these objects as they pass through various stages and out the other end - a kind of dynamic decorator pattern, I guess,…
James Crowley
  • 3,911
  • 5
  • 36
  • 65
2
votes
2 answers

LinFu IoC Best Practices on High Traffic Websites

We’re in the final stages of putting together a quite high traffic website (approx 6 million page impressions per week) and are using LinFu as the IoC container within the new architecture. We have a pretty standard setup: Web Layer | IServices <-…
Kevin Wilson
  • 7,753
  • 8
  • 35
  • 39
2
votes
1 answer

Creating LinFu interceptors for all types within an assembly

I'm trying to create LinFu interceptors for all methods in my DAL assembly. While I can do something like this: [Intercepts(typeof(IFirstRepository))] [Intercepts(typeof(ISecondaryRepository))] [Intercepts(typeof(IIAnotherRepository))] public class…
Kevin Wilson
  • 7,753
  • 8
  • 35
  • 39
2
votes
1 answer

LinFu version in NHibernate 2.1

I'm migrating the data layer of our application to NH version 2.1.0 (from 2.0.1) and noticed the use of LinFu. I discovered that framework and want to use it in other pieces of the application, especially I want to use the LinFu.Reflection.dll,…
simone
2
votes
3 answers

Is there a better way to do IOC in asp.net-mvc?

I have an asp.net-mvc site and I am using LinFu to do IOC. I ran into an issue where a number of actions have a dependency that I want to inject into the controller but i only want to initialize the dependency if i call the action that depends on…
leora
  • 188,729
  • 360
  • 878
  • 1,366
1
vote
0 answers

LinFu - can't quite see how to do what I want

Just found LinFu - looks very impressive, but I can't quite see how to do what I want to do - which is multiple inheritance by mixin (composition/delegation as I'd say in my VB5/6 days - when I had a tool to generate the tedious repetitive…
kpollock
  • 3,899
  • 9
  • 42
  • 61
1
vote
2 answers

cost of .net dynamic proxies

What is the cost of using dynamic proxies? I do not want to clutter my project with Interface Implementations, so I am considering using Dynamic proxies created by some 3rd party library like LinFu , Castle, Unity etc. Do they generate one instance…
hazimdikenli
  • 5,709
  • 8
  • 37
  • 67
1
vote
1 answer

is linfu 2.3 released anywhere?

i see projects and articles that reference linfu.core version 2.3 but when i go to the linfu website here, i only see version 2.2. does anyone know where to download linfu.core version 2.3 ??
leora
  • 188,729
  • 360
  • 878
  • 1,366
1
vote
1 answer

Dynamic Proxy generation with LinFu

I am trying to build a dynamic proxy for an interface with LinFu. The proxy should just implement the getter methods of the properties that are defined by the interface and return for instance a value from a dictionary, where the key is the property…
Rauhotz
  • 7,914
  • 6
  • 40
  • 44
1
vote
0 answers

Instantiating and binding Dynamic Proxy Binding from a complex data source with Automapper, Linfu, Clay or ImpromptuInterface

I need to construct an Immutable Complex Dynamic Proxy class from an anonymous type, json or Dictionary Given I have a public interface ICommand { Guid AggregateId { get; } } public interface IChangeDetails : ICommand { Name Name { get;…
1
vote
2 answers

Finding target of LinFu proxy object

This is pretty much a duplicate question but instead of using Castle Dynamic Proxy I'm using LinFu Getting underlying type of a proxy object I'm using automapper to create proxies of interfaces that I'm sending to my viewmodel in Asp.net MVC. My…
John Farrell
  • 24,673
  • 10
  • 77
  • 110
1
vote
1 answer

Proxy exposing multiple interfaces with Ninject.Extensions.Interception.Linfu

I'm using Ninject.Extensions.Interception (more specifically, InterceptAttribute) and Ninject.Extensions.Interception.Linfu proxying to implement a logging mechanism in my C# app, but I am facing some problems when a proxied class implements several…
peflorencio
  • 2,284
  • 2
  • 32
  • 40
0
votes
0 answers

How to turn LinFu runtime errors into compile time errors

I have had minimal exposure to IoC and am using LinFu. The main problem I am having is that errors are not being picked up until run-time. I much prefer to deal with compile time errors. For example, if I create an object using the following code: …