Alois Kraus

blog

  Home  |   Contact  |   Syndication    |   Login
  113 Posts | 8 Stories | 297 Comments | 162 Trackbacks

News



Article Categories

Archives

Post Categories

Image Galleries

Programming

Enterprise Library

The world is turning and evolution of software is going on and on. It is time for another Enterprise Library Update. In the last few weeks an enormous amount of code has been produced by the Patterns & Practices Team. In case you did not download the Microsoft Enterprise Library for .NET 2.0 you should have a look into if you develop with ASP.NET serious web apps or Enterprise Grade applications . Here are the most important links regarding the deliverables of the Patterns and Practices Team ......

If you are not sure if the Enterprise Library for .NET 2.0 is the right thing for your application you should check out the new Hands on Labs. All six Application Blocks (Caching, Security, Cryptography, Data Access, Logging and Exceptions Handling) are shown in action with a detailed step for step introduction to get started with each of them. Another source of information mainly configuration of the Enterprise Library can be found in the articles of my blog ......

I did submit some time ago a little fix for the Enterprise Library SqlConfigurationSource but I did not yet have time to blog about it. Better late than never I want to shed some light (again) on configuration. To get your application settings from your local disk you can use the .NET ConfigurationManager class or the (Entlib) FileConfigurationSource to fetch the settings from another file than your App.Config file. The Enterprise Library SqlConfigurationManager is the counterpart to the .NET ConfigurationManager ......

It has been some time since my last post. But I have an excuse: I did work on an improved version of the graphical EntlibConfig tool. The code canbe downloaded from the Sample Section of Gotdotnet. When you install the Jan 2006 of EntLib all works fine as long as EntLib is the only project in your bin folder. But for real Enterprise scenarios this is not true. The bin folder of your project is crowded soon with all sorts of other dlls and executables. Some might be managed some not, others might ......

The following code sample shows how to configure the Enterprise Library Logging Block programatically without the help of ObjectBuilder. To create a working LogWriter instance with your own settings you need to create the following objects: A Formatter which contains a valid message template A LogSource which has a name (Category) contains a colleciton of Listeners (Sinks) along with the Formatter. A collection LogSources with the category as key and the LogSource object as valueTo use this logger ......