kristofferahl/FluentSecurity — Issue #12: FluentSecurity with Unity
Author: madness2222
Created: 2011-12-19 17:50:10+00:00
State: open

Hi,

I've got my MVC app using Unity for my DI. How do I go about resolving the IPolicyViolationHandler with unity? As I'm aware the tutorial shows how to use it with structuremap. I've added my IPolicyViolationHandler mapping in the container.

For the ResolveServiceUsing in the configuration this is what I got in my bootstrap:
```C#
config.ResolveServicesUsing(type => DependencyResolver.Current.GetServices(type).Cast