November 2007 - Posts

8
Comments

Event Broker Implementation in C# - Full Source Code and Examples by Paki

Here is the full source code for Event Broker Implementation in C#. In zipped file you can find EventBroker with associated tests ans simple sample application that describes how loosely coupled objects can exchange data in any host....
Filed under: , , ,
0
Comments

Simple EventBroker Implementation in C# by Paki

Here is the simple implementation of EventBroker service. You can use in your aplications to implement communicationamong loosely connected components like plugins for example. EventBroker follows publisher / subscriber pattern. I am preparing pacakaged...
Filed under: , , ,
0
Comments

How to check if current user is in local admins security group by Paki

You can check whether current user belongs to Local Admin Group like this 1. Get reference to current WindowsIdentity WindowsIdentity wi = WindowsIdentity.GetCurrent(); 2. Create WindowsPrincipal using current windows identity WindowsPrincipal wp = new...
Filed under: , ,
0
Comments

How to create Delegates that points to static methods in runtime by Paki

One of the less known feature of .NET Reflection enable us to get reference to static methods which name is not known in compile time and to point a delegate at it. In this example we will enumerate and call all static methods of a plugin marked with...
Filed under: ,
Powered by Community Server (Commercial Edition), by Telligent Systems