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 a huge fan 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 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 to prepare that 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 communicate? Of course, it is a class that can be very easily used as the base of the PostSharp 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. Today’s subject will be the „Light MEF” and to be more specific, I would prepare two aspects that work similarly to MEF except it will be lighter and faster. Of course, it is only 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 WeChat. As you probably suppose, every instance of a Wsp Chat can communicate with each other. Let’s start with the beginning of the creation of this project. First, what I created was an empty WspChat Continue ReadingThe PostSharp (AOP) with The Pub/Sub Events Aspects