AJAX - AngularJS

Ajax is used for creating asynchronous web applications that get and store data from server without postbacks. In AngularJS $http object is used for get and post data from the server. $http use asynchronous techniques for interacting with server. A $http object returns a Promise object. A promise object represent a value that is not yet available. Its provides a then()...

Continue Reading

WCF Architecture

WCF provides a runtime environment for developing distributed services that are interoperable, secure, and reliable. A service is a reusable unit of functionality that performs a particular task. A WCF Service exposes Web Service Definition Language (WSDL) file contains the available functionality and the communication methods supported by the service. A client can import th...

Continue Reading

WCF Hello World Example

WCF is very popular platform for developing services. In this blog, we'll create a very basic and simple example of WCF service in just 6 steps. Steps are: Declare ServiceContract Declare DataContract Implement Service Configure Service Host Service Access Client Declare ServiceContract Create a new blank Console solution and name the soluti...

Continue Reading

WCF Instance Management

WCF Instance management is a set of techniques to decide whether create a new service instance on each client request or use existing service instance that handles client request. Advantages of WCF Instance Management The biggest advantage of instance management is the use of WCF sessions. With the use of WCF session, a client can use a single service instance for his ...

Continue Reading

C# Versions and Features

C# versions C# 1 comes in 2002 with .NET framework 1.0 and Visual Studio 2002 C# 2 comes in 2005 with .NET framework 2.0 and Visual Studio 2005 C# 3 comes in 2008 with .NET framework 2.0 and Visual Studio 2008 C# 4 comes in 2010 with .NET framework 4.0 and Visual Studio 2010 C# 5 comes in 2012 with .NET framework 4.5 and Visual Studio...

Continue Reading

Introduction to Design Patterns

Design patterns is an essential concept in software engineering. Every developer should know about Design patterns and how to apply these patterns in your project. Design Patterns are solutions to some common software design problems. These problems are the recurring design problems that software developers often faced during the development. Design patterns descri...

Continue Reading

Chain of Responsibility Design Pattern

In Chain of Responsibility pattern, we create a chain of objects which handles a particular request. Each object contains a reference to his next object, if the object does not want to handle the request, it's simply forward the request to next object handler. When a object is ready for handling the request, it's does not forward the request to ...

Continue Reading

Command Design Pattern

Command design pattern revolves around a single object which encapsulate all the information to execute a method at later time. This command object contains a receiver object instance and a method pointer. A client can use command object with different parameters. Command object uses client parameters and execute the method on the rece...

Continue Reading

Mediator Design Pattern

In object oriented programming, we have lots of objects interacting with each other. As project continues more objects are introduced and the interaction between these objects becomes dependencies between each other. We modify one object and we have to modify another object too because of dependency with each other. Mediator design pattern provides easy&n...

Continue Reading

Memento Design Pattern

Memento design pattern provides the ability to store and restore object's internal state without breaking encapsulation. This pattern is useful when we have to support undo or redo operations over an object. In OOPS, every object has internal state. To support undo/redo operations, we must save the state to somewhere. But due to encapsulation, ob...

Continue Reading

Join our newsletter and get an occasional email with a technology and DotNetPattern.com news update.