Posts

Showing posts from May, 2019

WCF Client to Service call

Download Project I am using a channel factory to call WCF service from client side in this example . A Channel Factory enables you to create a communication channel to the service without a proxy. A Channel Factory is implemented by the IChannelFactory Interface and their associated channels are used by the initiators of a communication pattern. The Channel Factory class is useful when you want to share a common service contract DLL between the client and the server.

Design Patterns - SOLID

Download          The SOLID principles of Object Oriented Design include these five principles:         1. SRP – Single Responsibility Principle.         2. OCP – Open/Closed Principle.         3. LSP – Liskov Substitution Principle.         4. ISP – Interface Segregation Principle.         5. DIP – Dependency Inversion Principle.         1 .SRP – Single Responsibility Principle.              This means that every class, or similar structure, in your code should have only one job to do.             The Single Responsibility Principle is one of the SOLID design principles.We can define it in the following ways :-             1. A reason to change: - A class or method should have only one reason to change.             2. Single Responsibility :- A class or method should have only a single responsibility.             SRP Benefits:-             The SRP has many benefits to improve code complexity and maintenance.Some benefits of SRP are following,             1. Redu