Exception Handling & Logging app blocks in Class Library

Topics: Exception Handling Application Block, Logging Application Block
May 12, 2009 at 11:16 AM

Hi

Is it possible to get the functionality of Exception Handling application block and Logging block within Class Library?

I like to get these two blocks within Class library and get the compiled DLL to use in other web applications to take advantage of the blocks.

 

Thanks,

May 13, 2009 at 4:11 AM

Hi,

What do you mean by getting those 2 blocks within a class lib? Do you mean you'll be creating something like helper classes which uses the blocks?

Valiant Dudan
Global Technology & Solutions
Avanade, Inc.
entlib.support@Avanade.com

May 13, 2009 at 9:06 AM

Thanks for the reply.

I mean 'Can I wrap these two blocks into a Class Library and compile as .dll' , so that it can be used for any application by importing the .dll into the project?

Thanks,

May 13, 2009 at 10:45 AM

Yes, you can do that. But I think you must also include the Ent lib assemblies together with the assembly that you've created as a wrapper.

Valiant Dudan
Global Technology & Solutions
Avanade, Inc.
entlib.support@Avanade.com