sankarsan

Stories kicked by sankarsan

Workflow and Host Communication in WF 4.0–Bookmarks(sankarsan.wordpress.com)

submitted by sankarsansankarsan(460) 1 month, 5 days ago

In the last post we have discussed at length about different mechanisms of parameter passing and obtaining results from a workflow.In this post we will discuss about another extremely important aspect of workflow and host communication i.e. Bookmarks. Bookmarks as the name suggests is a like Bookmark for a book. When created at a particular point in the execution of the workflow , the execution is suspended and the workflow waits to be resumed.When a bookmark is resumed it starts executing exactly from the same point. read more...

add a comment |category: |Views: 4

tags: another

Workflow and Host Communication in WF 4.0–Parameter Passing(sankarsan.wordpress.com)

submitted by sankarsansankarsan(460) 1 month, 19 days ago

Workflow host is an application responsible for executing the workflow and managing different workflow lifecycle events like start, completion, idle, unloaded etc.Now the workflow host should be capable of exchanging information with the workflow. This information exchange can be broadly categorized into: a) The parameters/arguments needed to start the workflow and to get the results back after workflow has executed. b) The intermediate data needs at different stages of a long running workflow (e.g. when the workflow is waiting for a specific input like Manager’s Approval). In this post we will concentrate on the different mechanisms of parameter passing and getting results back. In the subsequent posts we will move into more complex scenarios related to long running workflows. read more...

add a comment |category: |Views: 9

tags: another

ASP.NET Web API–Http Messaging(sankarsan.wordpress.com)

submitted by sankarsansankarsan(460) 2 months, 23 days ago

ASP.NET MVC 4 (right now in Beta) has introduced the ASP.NET Web API , a MVC compliant framework for developing and hosting HTTP services which can be accessed from a variety of clients.In this post we will take how the ASP.NET Web API request processing pipeline works and HTTP request is passed between different processing stages. ASP.NET Web API can be hosted in IIS like a normal ASP.NET Web application and it can be also self hosted within a simple console application.For the sake of simplicity we will use a self hosted application here. read more...

add a comment |category: |Views: 4

tags: another

Inside ASP.NET 4.5 Bundling and Minification(sankarsan.wordpress.com)

submitted by sankarsansankarsan(460) 6 months ago

ASP.NET 4.5 has introduced built-in support for bundling and minification of javascript and css resources.Here minification refers to the mechanism of compressing the javascript & stylesheet files thus reducing the size of data to transferred over the wire. The process of bundling involves combining multiple javascript/css files into one, thus reducing the number of HTTP calls made from the browser. The following post by Abhijit Jana gives a nice illustration of the feature covering the basics and the advanced areas as well. http://abhijitjana.net/2011/10/06/bundling-and-minification-in-asp-net-4-5/ read more...

add a comment |category: |Views: 8

tags: another

Roslyn CTP–Syntax Tree–Part II–Singleton Checker(sankarsan.wordpress.com)

submitted by sankarsansankarsan(460) 6 months, 7 days ago

In the last post related to Roslyn we developed a very basic syntax walker. In this post we will see how we can use the same for code analysis and checking. As a good practice we generally try to avoid having instance members in a singleton class. This is true if you are making your business logic layer classes Singleton and would prefer to avoid mess up by multiple threads.... read more...

2 comments |category: |Views: 26

tags: another

Roslyn CTP–A Walk Through The Syntax Tree–Part I(sankarsan.wordpress.com)

submitted by sankarsansankarsan(460) 6 months, 7 days ago

The Roslyn project aims to expose the functionalities of C#/VB complier as API/Services. The Roslyn CTP was released this October.One of the important components of Roslyn is the Compiler API. This exposes an object model which provides access to information generated at the different stages of compilation.The first phase of any compilation process involves parsing and generating the syntax tree. In this post we will discuss about the basics of the Syntax Tree API..... read more...

add a comment |category: |Views: 8

tags: another

Inside C# Extension Methods(sankarsan.wordpress.com)

submitted by sankarsansankarsan(460) 7 months, 3 days ago

C# Extension methods were introduced in C# 3.0. They provide a mechanism to extend(not the inheritance way) the functionality of an existing class by attaching methods to it..... read more...

1 comment |category: |Views: 81

tags: another

Groovy Like ConfigSlurper in C# using ExpandoObject(sankarsan.wordpress.com)

submitted by sankarsansankarsan(460) 9 months, 6 days ago

Groovy Like ConfigSlurper in C# 4.0 using ExpandoObject read more...

1 comment |category: |Views: 7

tags: another

Entity Framework 4.1 Annotations–Part 1(sankarsan.wordpress.com)

submitted by sankarsansankarsan(460) 11 months, 22 days ago

Entity Framework 4.1 has introduced the Code First Approach with it’s Fluent API and Annotations.In this series of posts we will focus on the Annotations part of it and how it can be used to build the domain model and map it to the database. read more...

add a comment |category: |Views: 35

tags: another

Sorting Collections in C#(sankarsan.wordpress.com)

submitted by sankarsansankarsan(460) 1 year ago

In this post we will discuss about different techniques of sorting collections of objects in C# using the functions provided by the base class libraries.This is something very common and there different types of provisions in .NET BCL to achieve the same.We will try to discuss the advantages and limitations of each of these approaches. read more...

add a comment |category: |Views: 5

tags: another

TPL DataFlow–BufferBlock<T> & Load Balancing (codingndesign.com)

submitted by sankarsansankarsan(460) 1 year, 1 month ago

Let’s consider a situation where we have a data source which is churning out data like a continuous stream and passing it to some data processing units (like a method) as shown in the figure below.The processing units are load balanced i.e. if one unit is still busy processing then the next element coming out of the data source will be handed over to the next processing unit. read more...

add a comment |category: |Views: 30

tags: another

App Fabric–Walkthrough Of A Simple Client Code(sankarsan.wordpress.com)

submitted by sankarsansankarsan(460) 1 year, 3 months ago

Windows Server AppFabric has been released for quite sometime now.I did not had much time to look into it then.Since last week I have started playing around with the App Fabric Caching.In this post we will build a small App Fabric Cache client and try to understand how it works. read more...

add a comment |category: |Views: 4

tags: another

Task Parallel Library in .NET 4.0 – Part 3 (codingndesign.com)

submitted by sankarsansankarsan(460) 1 year, 6 months ago

In my last post we had completed our discussion on the nested and child tasks i.e what happens when another task is created while execution of the other.In this post we will take a look at how we can cancel a task. read more...

add a comment |category: |Views: 4

tags: another

Task Parallel Library in .NET 4.0 – Part 2(codingndesign.com)

submitted by sankarsansankarsan(460) 1 year, 6 months ago

In my last post I had started a discussion on Task Parallel Library introduced as part of .NET 4.0.In this post also, we will continue with same.We will take a look at what happens when a task creates one more task during it’s execution i.e. what are nested and child tasks and how they are handled. read more...

add a comment |category: |Views: 10

tags: another

Task Parallel Library in .NET 4.0 – Part 1 (codingndesign.com)

submitted by sankarsansankarsan(460) 1 year, 6 months ago

In one of my earlier posts about the Parallel Programming Extensions in .NET 4.0 I had briefly mentioned about the Task Parallel Library one of the most critical components of the Parallel Extensions.It primarily consists of the APIs provided under System.Threading& Sytem.Threading.Tasks.It uses the CLR Thread Pool behind the scenes and some sophisticated algorithms to assign number of threads to maximize performance.It provides more programmatic control than thread or work item to... read more...

add a comment |category: |Views: 23

tags: another

Asynchronous Programming in .NET – Part 2 (codingndesign.com)

submitted by sankarsansankarsan(460) 1 year, 6 months ago

In the last post we have discussed about the Asynchronous Programming Model(APM) and it’s different implementations.In this post we will discuss about the Event Based Asynchronous Pattern in .NET Framework which was introduced in .NET 2.0.This pattern makes use of the event/delegate model of the .NET Framework and is particularly useful for GUI based components. read more...

add a comment |category: |Views: 5

tags: another