The Cryptography PostSharp Aspects

Today I would like to write some aspects for security and encryption of sensitive data in our application. Because I am huge fun of the PostSharp Framework I will try to prepare two aspects. That will be EncryptData and DecryptData aspects. Also I need to be sure that my aspects work very fast. So I will try to measure working aspects with the ANTS Performance Profiler 6 that I have. So let me start with simple requirement: Continue ReadingThe Cryptography PostSharp Aspects

Base of The PostSharp UDP Communication Aspect

Hi, Today I would like to show how Simple is communicate via network UDP. I sometimes saw how some developers try prepare those kind of communication with more code. In C# that can be very easy. I would like to only show you an example. And ask you is it enough to communication? Of course it is class that can be very easy used as base of the PostSharp Communication Aspect. I think that you can easily Continue ReadingBase of The PostSharp UDP Communication Aspect

The Light MEF like PostSharp Aspects

“Everything should be made as simple as possible, but no simpler.”  – Albert Einstein Today I begin with answer the last post question. One line implementation of method Is Not so difficult and all of you probably guess. And today subject will be the „Light MEF” and to be more specific I would prepare two aspects that works similar to MEF except it will be lighter and faster. Of course it is only beginning I would like Continue ReadingThe Light MEF like PostSharp Aspects

The PostSharp (AOP) with The Pub/Sub Events Aspects

Today I would like to share a few examples of PostSharp aspects combined with Pub/Sub Event System. That example was created for my Workshop Training and I would like to share this example with you. I build WspChat. As you probably suppose every instance of a Wsp Chat can communicate with each other. Lets start from the beginning of creation of this project. First what I was created was a empty WspChat class and then a WspEventChatForm Continue ReadingThe PostSharp (AOP) with The Pub/Sub Events Aspects