Monday, January 30, 2006 10:00 PM Olaf Conijn

EnterpriseLibraryExtensions, first drop

As promised in an earlier post I am putting together some ‘extensions’ to go with the January 2006 release of Enterprise Library (or Enterprise Library for .NET 2.0).

Since the extensions share common code, I started out with 2 relative simple nodes: “Configuration Constants Writer” and “Configuration Protector”. These implementations seem trivial but introduce new designtime concepts like “ExtenderProviders” and “DesignerVerbs”, which I’ll need for the other (more complex) extensions.

The implementation of the first 2 extensions are pretty stable (though unlike the p&p dev-team, I don’t have a test-team) and reckoned this might be a good time to put them on the online (and - who knows? - get some feedback).

Configuration Constants Writer
This extension provides compiletime safety when referencing EntLib providers from your code. It maintains a code file with constants that contain the names of the providers you would like to use. If you include this file in your project, you don’t have to worry about changing the names of the providers you used.

Make sure you reference providers by their constant, the constant's value will change after changing the provider’s name.
The Configuration Constants Writer node and its settings.|
The Configuration Constants Writer node and its settings.


A 'Constant name' on a connectionstring node and the code file that is generated.
A 'Constant name' on a connectionstring node and the code file that is generated.



Configuration Protector
The Configuration Protector can be used to encrypt your configuration file to protect sensitive information such as connectionstrings. It uses the .net v2 frameworks Protected Configuration API, which is well documented on MSDN.

The Configuration Protector node and its settings.
The Configuration Protector node and its settings.

Example of a protected Data Access Application block's configuration.
Example of a protected Data Access Application block's configuration.

Password (connectionstring) Parameter
Since we can protect our configuration, it would be a shame to have to edit the connectionstring’s password property in plain text. Therefore I added a “Password Parameter” to the configuration console. The Password Parameter provides a nice UI to edit your databases connectionstring.

Fancy UI to edit a connectionstring's password property.
Fancy UI to edit a connectionstring's password property.

Installation and download
EDIT: Please visit the Enterprise Library Extensions page for the latest download and installation notes.

# re: EnterpriseLibraryExtensions, first drop

Tuesday, January 31, 2006 3:38 AM by HJ Meulekamp

Great.. Will start testing tonight... ;-)

# Enterprise Library Extensions for .NET 2.0 release

Tuesday, January 31, 2006 9:03 AM by Tom Hollander's blog

Olaf is at it again. This time he's building a comprehensive set of Enterprise Library Extensions that...

# re: EnterpriseLibraryExtensions, first drop

Tuesday, January 31, 2006 1:15 PM by Frank

Extension would be equally helpful as EntLib itself does to us. Looking forward to seeing more such extensions...Thanks a lot!!

# re: EnterpriseLibraryExtensions, first drop

Tuesday, January 31, 2006 11:32 PM by Daniel

One word: cool

# Estensioni per Enterprise Library January 2006

Thursday, February 02, 2006 7:54 AM by mauros@UGIdotNET

# EntLib 2.0 : des extensions intéressantes

Thursday, February 02, 2006 10:17 AM by CoqBlog

Je viens de tomber sur un post de Tom Hollander parlant d'extensions pour l'Enterprise Library pour le...

# Links of the Week

Friday, February 03, 2006 8:33 AM by Jeff Barnes - MCSD


Comparison of AJAX frameworks for ASP.NET
Extending CodeSmith merge functionality
Good read on...

# Enterprise Library 2.0 extensions

Monday, February 06, 2006 4:58 PM by Anatoly Lubarsky

# Help

Monday, February 13, 2006 5:37 PM by John

When I choose New -> Password parameter, I get the password parameter and am allowed to enter the password in the dialog box exactly as shown above. However, it doesn't show up in the App.config. When I close the Application and reopen it, the newly added password paramter is no longer there.

# re: EnterpriseLibraryExtensions, first drop

Tuesday, February 14, 2006 2:34 AM by Olaf Conijn

John, got that.

I'll fix this in my next release (just wondering about what broke it...)

# re: EnterpriseLibraryExtensions, first drop

Tuesday, February 14, 2006 6:39 PM by Jeremy Thake

I used your Environment extensions for Enterprise Library 1.0 and wondered whether you were going to do the same thing for 2.0? Or is there a simpler way around this...I've been looking into seperate configuration files, but not sure how to go about it.

# re: EnterpriseLibraryExtensions, first drop

Wednesday, February 15, 2006 6:19 AM by Olaf Conijn

Thake,

yes I am planning a 2.0 version for the environmental overrides, just give me about 2 weeks time to get it finished. I'm currently cought up in some actual work ;-)

# Rolling File Trace Listener Extension for Enterprise Library 2.0

Wednesday, February 15, 2006 11:42 AM by Erwyn van der Meer

I decided to create an EntLib 2.0 version of the Rolling File Sink. My extension is called the Rolling File Trace Listener. It allows log files to roll over based on both age and size limits.

# re: EnterpriseLibraryExtensions, first drop

Wednesday, March 08, 2006 12:37 PM by Ezequiel - ebuttiero@gmail.com

Hi!

I am having a problem with the EnterpriseLibraryExtensions component. When i encrypting the connection string i am losing the password. I dont know what's happening i would appreciate any help. Thanks!

# re: EnterpriseLibraryExtensions, first drop

Saturday, March 11, 2006 9:54 PM by James

Do you know how to use the Configuration Protector with the SqlConfigurationSource?

Thanks for any help,

James

# Links of the Week

Thursday, March 16, 2006 1:26 PM by Jeff Barnes - MCSD

Comparison of AJAX frameworks for ASP.NET
Extending CodeSmith merge functionality
Good read on SQLCLR...

# Links of the Week

Thursday, March 16, 2006 1:51 PM by Jeff Barnes - MCSD

Comparison of AJAX frameworks for ASP.NET
Extending CodeSmith merge functionality
Good read on SQLCLR...

# re: EnterpriseLibraryExtensions, first drop

Monday, March 20, 2006 3:12 AM by Evetsa

Hi,

i am having the same problem with password parameter not being saved into config file. Could you please be so kind and give us guideance how to fix the issue if it has not been fixed?

Regards,
Evetsa

# re: EnterpriseLibraryExtensions, first drop

Monday, March 20, 2006 3:18 AM by Olaf Conijn

# Enterprise Library Extensions

Wednesday, March 29, 2006 3:44 AM by ^(?:[^$]*)$ --Matches everything, captures nothing


Download latest version: Enterprise Library Extensions 0.7

Installation
All the extensions can...

# Links of the Week

Sunday, April 23, 2006 9:28 AM by Jeff W. Barnes

Comparison of AJAX frameworks for ASP.NET
Extending CodeSmith merge functionality
Good read on SQLCLR...

# EntLib 2.0 : des extensions intéressantes

Monday, November 27, 2006 1:35 PM by CoqBlog

Je viens de tomber sur un post de Tom Hollander parlant d'extensions pour l' Enterprise Library pour