Questions tagged [policy-injection]

29 questions
1
vote
1 answer

perfmon using EntLib - no instance in perfmon

We are in need to add performance monitoring to our application. For the prototype I've created a sample project, which I'm trying to get into work. I'm trying to use policyInjection for the performance counters, so we'll be able to turn on and off…
0
votes
2 answers

asp.net mvc controller factory

I would like to achieve something to this extent: I want to audit all of my controllers participating in serving http requests to the view files. I would like to audit each and every method on that controller and write this information to the flat…
dexter
  • 7,063
  • 9
  • 54
  • 71
0
votes
1 answer

How to apply PIAB in WCF with MEF?

I have my service layer serving as a facade over my domain model layer to orchestrate calls to domain objects. I wrote a custome instance provider for my WCF services to harness MEF for instance creation. Now I need to apply PIAB for auditing and…
binjiezhao
  • 567
  • 8
  • 12
0
votes
1 answer

How to add custom context data to be logged with Policy Injection in WCF?

We all know it's perfectly ok to marry up WCF with PIAB to address cross cutting concerns like logging, validation, auditing etc (visit http://msdn.microsoft.com/en-us/magazine/cc136759.aspx). But the bog standard log call handler only support a…
binjiezhao
  • 567
  • 8
  • 12
0
votes
1 answer

Unity Interception in Derived Class

I've got a situation where policy injection no longer works when I'm using a derived class. The classes involved look like this (basically an interface, an abstract base class, and an implementation class): public interface IRepository { void…
Migdalin
  • 77
  • 9
0
votes
1 answer

How to add policy injection to a private method

I'am having the following situation. We have a private method where I want to add policyinjection by using a handlerAttribute. This method is called by a few different public methods which are defined in my interface. I'am instantiating the…
ChristiaanV
  • 5,401
  • 3
  • 32
  • 42
0
votes
1 answer

Microsoft PolicyInjection Create too slow

Our project is using PolicyInjection (from Microsoft EnterpriseLibrary) for some reason. Problem is, that PolicyInjection.Create(params) takes about 30 ms. This is WAY too much since it is called over 100 times for single request which summs up in…
0xDEAD BEEF
  • 2,074
  • 7
  • 31
  • 46
0
votes
2 answers

Errors in Aspect Oriented Programming with Policy Injection

When using Aspect Oriented Programming with Policy injection, how do you deal with policy errors gracefully in your design? In Aspect Oriented Programming the objects should be unconcerned with how a particular policy is configured, but a particular…
Mark Rogers
  • 96,497
  • 18
  • 85
  • 138
0
votes
1 answer

Enterprise Library Policy Injection Logging Managed Security Context Information in ASP.NET

I am using The Policy Injection Application Block to log methods that are called in my ASP.NET application. I would like these log entries to include information like the current user identity, whether the user is authenticated and so forth. All of…
John Bledsoe
  • 17,142
  • 5
  • 42
  • 59
0
votes
1 answer

Unity Interception and classes with Circular Reference

My rich domain model has some circular reference, and this is intentional. I am also writing my own ORM for more control, and to detect changes made to properties I am using Unity to intercept any call to setters and trigger the property change…
0
votes
1 answer

Exception - Cannot swallow exceptions for methods with non-null return type

We have developed a sample project to handle all exception by using entlib exception handler block and Unity. When I try to invoke a method using unity container I am getting the following exception, “Cannot swallow exceptions for methods with…
0
votes
2 answers

Unity + Interception + Fakes = Big Ball of Fire

I am having trouble with making Unity play nice with the new Fakes framework (formerly pex & moles) When I tried to create fakes of the unity interception library, it caused my unit test to run fine when debugging, but breaks with…
Alwyn
  • 8,079
  • 12
  • 59
  • 107
0
votes
2 answers

Policy Injection with ASP.NET MVC Controllers

I'm running into an issue with the Policy Injection Application Block from Enterprise Library in conjunction with ASP.NET MVC. In my ControllerFactory, I'm creating the controller and then calling PolicyInjection.Wrap on the controller. This gives…
nikmd23
  • 9,095
  • 4
  • 42
  • 57
0
votes
1 answer

Effective Policy Viewer for Ent Lib 4

I can't find the effective policy viewer tool for enterprise library 4. All the links I find on the net point to source I have to compile against entlib 3 dll's. Does anyone know where I can find the updated tool? Or does the old one work and can…
nikmd23
  • 9,095
  • 4
  • 42
  • 57
1
2