OneTrueError - Automated exception handling

Category Archives: Architecture

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?

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.

Posted in Architecture | Tagged | 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.

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 … Continue reading

Posted in Architecture, CodeProject, 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 … 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, … 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 … Continue reading

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

The danger of frameworks

I introduced Entity Framework (Code first) to my team in the beginning of this week. The other devs have not used it before, but as they are a Microsoft focused shop it was the only option other than ADO.NET. EF … Continue reading

Posted in Architecture | 9 Comments

Introducing the data mapper in Griffin.Framework

As you might know I’m running a .NET exception service called OneTrueError. When I moved from a NoSQL db to SQL Azure I had to be able to work with the database in some way. I’m not using OR/Ms any … Continue reading

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

OneTrueError and the WinForms/WPF integration

OneTrueError is a new startup which also is a member of Microsoft BizSpark. This post is about the client library for WinForms/WPF. It will catch and handle all uncaught exceptions automatically. The errors are also uploaded to our site for … Continue reading

Posted in Architecture, CodeProject, OneTrueError | Tagged , , | Leave a comment