ConfigurePolicy method is gone in entlib 5

Topics: Policy Injection Application Block
May 20, 2010 at 11:32 AM
hi Im having a problem migrating to entlib5. the method ConfigurePolicy from CallHandlerData Class is gone. what should i do? thanks, Tamir
May 21, 2010 at 1:12 AM

I haven't used that method directly in an application.  So I'm curious what exactly is your scenario for using it? 

 

Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com

May 21, 2010 at 6:11 AM

what we have is pretty much like the code that is presented here

http://www.koders.com/csharp/fidFCE405CD146C214FF735A7125C95B3D468A54FE3.aspx?s=file

May 21, 2010 at 6:30 AM

So you're creating a custom callhandlerdata?  You only need to override what is in the base class.  That method was removed but you need to override a new one and that is the GetRegistrations method in order to specify typeregistrations required to create your custom provider.   You can check different classes inheriting from the CallHandlerData from the entlib source code to get an idea of what the logic looks like for that method.

 

Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com