WCF Tutorial: A Different Approach – Service Interface

Service Interface At the heart of this WCF solution is the Service Interface which describes the operations that our service supports. In addition, the service interface (contract) assembly also contains the DTOs and SOAP Faults that are to be exchanged over the wire. Personally, I like to organize this assembly by putting DTOs in a… Read More »

Compression and Encryption: Order Matters

Compression then encryption or the other way around? Sometimes we need to compress a file in order to make it easier to transmit. Sometimes we need to encrypt the contents of a file in order to protect that information from prying eyes. Sometimes we need to apply both compression and encryption to a file. At… Read More »

WCF Tutorial: A Different Approach – Introduction

Introduction Windows Communication Foundation (WCF) is a part of the .NET Framework which allows for rapidly building service-oriented applications. Personally, I believe the strongest aspect of WCF is the speed in which you can construct and deploy business applications which require a service oriented architecture (SOA) based solution. WCF is mainly for building SOAP-based web… Read More »

The .NET BackgroundWorker class and You

Introduction My personal favorite class of the .NET Framework is the BackgroundWorker class. The BackgroundWorker class provides an easy way for a programmer to execute a time-consuming operation on a separate background thread while providing a simple way to communicate progress, completion and other information about the background operation to the thread which started the… Read More »

Building Duplex Services with WCF

Introduction To begin, consider non-duplex Request-Reply services. In non-duplex Request-Reply services, the client sends a request to the server and the server in turn replies with a response to the client. Another noteworthy characteristic of non-duplex Request-Reply services is that the client is always the one to initiate communication between the two parties. In duplex… Read More »

Proper Etiquette for using MySQL in C# (Part of 2 of 3) – Parameterized Queries

In the first installment of this three part series I covered why properly managing resources related to database activity is so important. In this second part, I will discuss how using parameterized queries (also known as prepared statements) will improve the performance as well as increase the security of your application. Again the examples are… Read More »

Bit Processing in C#

As a .NET programmer, how do you check if a bit is set within a byte? How do you set, unset or toggle a bit? How do you get the binary string representation of a byte? Well for most of those questions, the answer is to use the same bit-twiddling methods that C/C++ programmers are… Read More »