policy-injection

What's the best way to tell if a method is a property from within Policy Injection?

I've got a custom handler applied to a class (using the Policy Injection Application Block in entlib 4) and I would like to know whether the input method is a property when Invoke is called. Following is what my handler looks like. [ConfigurationElementType(typeof(MyCustomHandlerData))] public class MyCustomHandler : ICallHandler { ...

Where can I get a simple explanation of policy injection?

I'd like a dead simple explanation of policy injection for less-informed co-workers. Where is a good resource for this? I learned about policy injection from the entlib help files, which I'm sure aren't the best option. ...

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 policy may throw particular errors. What's the most graceful design to deal with that? ...

Security and Policy Injection Application Block

I have a mixed UI (Win App, WPF App, and soon an ASP.NET MVC App) setup, so far I'm using Client Application Services for security. I know how to programmatically get a user authenticated and doing so is working beautifully. However... I want to implement some cross cutting that basically checks to see if the user is authenticated all...

Logging using policy injection application block

Hi All I want to ask, how to use policy injection application block to log methods entry and exit in these cases : Case1 : in case of logging events handlers of a web form controls, you know the class let's say _Default must be inherited from class System.Web.UI.Page , so we can't inherit our class from MarshalByRefObject class so log...

Policy based design and best practices - C++

struct InkPen { void Write() { this->WriteImplementation(); } void WriteImplementation() { std::cout << "Writing using a inkpen" << std::endl; } }; struct BoldPen { void Write() { std::cout << "Writing using a boldpen" << std::endl; } }; template<class PenType> class Writer : public PenType { public: v...

Policy Injection Application Block in real world apps?

The PIAB of the Microsoft Enterprise Library looks like it could be used for some pretty cool things. Many people were questioning how it would perform in real world applications, due to its use of remoting-based interception techniques. I haven't heard much about it recently and am wondering if anyone has had good or bad experiences f...

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 someone provide the binaries? ...

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 me back a Transparent Proxy to the controller which manages the call handler chain. Final...

Will ValidationHandler use the DataAnnotation Attributes?

Will the ValidationHandler in the Policy Injection Application Blocks work with DataAnnotation Attributes(for validatation) or do I need to decorate my models with the Attributes from the Validation Blocks? ...

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 this information is provided by the ManagedSecurityContextInformationProvider, but I can'...

Applying policy based design question

I've not read the Modern C++ Design book but have found the idea of behavior injection through templates interesting. I am now trying to apply it myself. I have a class that has a logger that I thought could be injected as a policy. The logger has a log() method which takes an std::string or std::wstring depending on its policy: // bas...