OneTrueError - Automated exception handling

How to make exception reporting in log4net awesome.

Are you using log4net in an existing application and feel that you got no control over your errors? We’ve now created a seamless log4net integration. That means that we will automatically report all exceptions that you are logging.

Continue reading

Posted in CodeProject, OneTrueError | Tagged | Leave a comment

Communicating business rules with methods

Do you use anemic models? i.e. having business classes like “User” without any methods but just properties instead? Do you want to do better but do not know how?

Continue reading

Posted in Architecture | 7 Comments

How to create a SqlException

Have you tried to create a SqlException only to discover that the constructor is private? Here is how you can create the exception despite of that.

Continue reading

Posted in Architecture | Tagged | Leave a comment

Free ebook about localization in .NET

My book has finally been published by Syncfusion.

bok

Download link

Posted in Uncategorized | Leave a comment

How to safely convert enums

Converting between different types of enums is quite easy and it typically works fine. For a while. But changed business requirements might require that you modify the enums, and it’s easy to forget a conversion somewhere.

Continue reading

Posted in Architecture | Tagged , | Leave a comment

Running services in long lived applications in .NET

You have probably created a windows service or other types of applications where you have code which need to be run in the background to not block the main thread. To do that you have different types of solutions in .NET, for instance Threads, Timers and Tasks. However, you need to construct them manually, make sure that they do not throw unhandled exceptions etc.

Griffin.Framework provides a simpler solution where you only need to implement a small interface. The library also have full support for your favorite inversion of control container, which enables to to use dependency injection in your application services.

Continue reading

Posted in Architecture, CodeProject, Griffin.Framework, Libraries | Tagged , , | Leave a comment

Sending files over the network with .NET

Griffin.Framework have built in support for streams if you are using MicroMsg. This example will demonstrate how you can send a file stream over the network.

Continue reading

Posted in Griffin.Framework, Libraries | Tagged , | Leave a comment

Command/Query library with network and IoC support

Have you read about the Command/Query separation pattern and wondered how hard it would be to get started with it? With Griffin framework you only need a few lines of code to have everything configured, no matter if the messages are being executed in process or executed in a server application somewhere.

Continue reading

Posted in Architecture, Libraries | Tagged , , | Leave a comment

Easy and perfomant client/server communication with protobuf-net & Griffin.Framework

ProtoBuf is Googles open serialization format which can be used to serialize objects in a standardized way. With it, different platforms can communicate with a format that is much more efficient than XML. Combine the most popular implementation if it, protobuf-net, with Griffin.Framework and you get an easy and fast way of sending information between processes.

Continue reading

Posted in Architecture, CodeProject, Libraries | Tagged , , | 2 Comments

Griffin.Framework – Performant networking in .NET

Griffin.Networking was my attempt to create a Netty inspired library. The library is working pretty well but the internal architecture became a bit complex which I am not really satisfied with. Griffin.Framework can now be considered to be a stable replacement of Griffin.Networking.

Continue reading

Posted in Architecture, CodeProject, Libraries | Tagged , | 3 Comments