//Cloud notes from my desk -Maheshk

"Fortunate are those who take the first steps.” ― Paulo Coelho

Happy new Year 2012

Wishing you a Very Happy New year 2012…

I would like to share this useful utility ( focus booster)- no description reqd.
http://www.focusboosterapp.com/ – thanks to those people who put their ideas as this app. I use this often these days to cut off office noise and distractions.

2011-12-26 Posted by | Uncategorized | | Leave a comment

What is Visual Studio LightSwitch? Why one more tool?

1)VS LightSwitch is designed to address this all-too-common scenario.

2)LS is form VS family aimed at developers of all skill levels who want to quickly create data-centric business applications for the desktop, Web and cloud.

3)LS simplifies the development process because it does most of the development work for you. You don’t need to write code to interact with db’s and you don’t need to manually lay out screens. — You can concentrate on the business logic.

4)LS applications are based on Silverlight. Based on MVVM, Entity Framework and WCF RIA Services. Deployed as desktop (out-of-browser) or browser-based applications. Desktop applications can leverage local hardware resources and work with applications such as Microsoft Word and Excel. Both desktop and browser-based LightSwitch applications can be hosted on IIS and Windows Azure.

5)Knowing that a LightSwitch application is a Silverlight application, you may be wondering, “Where is the XAML?”

A primary goal of LightSwitch is to make it much easier to build applications. It therefore does not expose XAML at design time. Rather, LightSwitch generates XAML at run time based on the screen design. This makes it dramatically easier for users to build applications.

If you’re an experienced Silverlight developer, you might be thinking that this also limits your ability to build the screens you’d like.

Note: Primary audience for LS is end-user developers. These are people building applications to support business functions. They aren’t professional developers. They’re IT pros, information workers and others who do some development as part of their job. They often have a need to build applications that manage “things,” such as department computer assets or car fleets. They may need an application to manage an event, such as a quarterly open house.

src: http://msdn.microsoft.com/en-us/magazine/hh335065.aspx

2011-12-10 Posted by | Uncategorized | Leave a comment

What is so special about CorrelationManager Class?

It groups the traces that are part of a logical transaction. It can be nested. Two things important from this classes are,
1)ActivityId-Gets or sets the id for a global activity-GUID
2)LogicalOperationStack-Gets the logical operation stack from the call context.

Ex: Correlated traces by ASP.NET request/response in the log.

It provide a way to store logical operation identity(Guid) in a thread context and automatically tag each trace event generated by the thread with the Guid.

This class, recently helped us in solving one of the logging related problem.

I mean we required a transactional logging such a way that, it can be grouped in log viewer for easy understanding. Let say, an event raised and launched few threads which has got each of their log statements with some variables- with this class we can group them with Guid..so we can easily understand the navigated path as like in stack trace while debugging.

private static void SampleWithThreading()
thread1 = new Thread(SampleMethod1) { Name = “T1” };
thread2 = new Thread(SampleMethod1) { Name = “T2” };

thread3 = new Thread(SampleMethod2) { Name = “T3” };
thread4 = new Thread(SampleMethod2) { Name = “T4” };

Trace.CorrelationManager.ActivityId = Guid.NewGuid();
string logString = “(Operation1)Transaction 1 started with Guid:-” + Trace.CorrelationManager.ActivityId;
traceSource.TraceData(TraceEventType.Information, 1, logString);


Trace.CorrelationManager.ActivityId = Guid.NewGuid();
logString = “(Operation2)Transaction 2 started with Guid:-” + Trace.CorrelationManager.ActivityId;
traceSource.TraceData(TraceEventType.Information, 1, logString);




Read more from src: http://msdn.microsoft.com/en-us/library/system.diagnostics.correlationmanager.aspx

2011-12-09 Posted by | Uncategorized | Leave a comment

Live Azure event by Scott on Dec 13,2012

More details @ http://www.learnwindowsazureevent.com/

2011-12-09 Posted by | Uncategorized | Leave a comment


%d bloggers like this: