Skip to main content

Posts

Whats new in Visual Studio 2013

With most releases, the following areas received the most focus : One ASP.NET - All previous ASP.NET projects integrate seamlessly with the new One ASP.NET experience. You can customize your project and configure authentication using the One ASP.NET project creation wizard. It allows you to easily mix and match .NET technologies within a single application (Web Forms, MVC, Web API etc.). ASP.NET Identity - The project templates have been updated to use ASP.NET Identity for authentication and identity management. A tutorial featuring Facebook and Google authentication and the new membership API can be found at  Create an ASP.NET MVC 5 App with Facebook and Google OAuth2 and OpenID Sign-on  . Bootstrap Integration - The project templates has been updated to use Bootstrap to provide a sleek and responsive look and feel that you can easily customize. For more information, see Bootstrap in the Visual Studio 2013 web project templates. Peek Definition  - Basically a ver...

How to retry jquery ajax failure request

$ . ajax ({ url : 'someurl' , type : 'POST' , data : ...., tryCount : 0 , retryLimit : 3 , success : function ( json ) { //do something }, error : function ( xhr , textStatus , errorThrown ) { if ( textStatus == 'timeout' ) { this . tryCount ++; if ( this . tryCount <= this . retryLimit ) { //try again $ . ajax ( this ); return ; } return ; } if ( xhr . status == 500 ) { //handle error } else { //handle error } } });

Whats new in Visual Studio 2015

Single sign-in You, like many other developers today, take advantage of multiple cloud services when developing your applications. For example, you've probably added a cloud backend to your applications to store data, stored your source code in the cloud, or published an application to a store. In the past, each of these services required a separate sign-in process, and each service managed the signed-in user state separately. With this release, reducing the authentication prompts required to access many integrated cloud services in Visual Studio. Now, when you authenticate to the first cloud service in Visual Studio, will automatically sign you in, or reduce the authentication prompts for other integrated cloud services. CodeLens In CTP 6, you can now see the history of your C++, SQL, or JavaScript files versioned in Git repositories by using CodeLens file-level indicators. Code Maps When you want to understand specific dependencies in your code, visualize them by cr...

ASP.NET 5 and MIDDLEWARE

ASP.NET 5 has been largely rewritten from the ground up, and incorporates some radical changes when compared with previous versions of ASP.NET. One of the biggest changes is in the HTTP Pipeline. This article looks at how those changes impact the design and registration of plug and play components that used to be represented by HttpModules. full blog 

Variance in C#.net 4.0 Covariance and Contravariance

Within the type system of a programming language , covariance and contravariance refers to the ordering of types from narrower to wider and their interchangability or equivalence in certain situations (such as parameters, generics, and return types). covariant: converting from narrower (float) to wider (double). contravariant: converting from wider (double) to narrower (float). invariant: Not able to convert (Null). Concept Of Variance : If y is derived from X and y relates to X then we can assign X to y. Like X=y. This is Covariance. If Y is derived from X and y relates to X then we can assign y to X. Like y = X. This is Contravariance. If class A is related to B then B is related A. Covariance Class B: A then we can assign A = B Contravariance Class B: A then we can assign B = A Example Class String : Object Covariance => Object=string; Contravariance=> string=Object; Covariance interface and delegate must have ' In' keyword declaration f...

Windows Workflow Foundation (WF)

What’s New in WF4 The significant changes made were necessary to provide the best experience for developers adopting WF and to enable WF to continue to be a strong foundational component that you can build on in your applications. The new framework components are found primarily in the System.Activities.* assemblies while the backwards compatible framework components are found in the System.Workflow.* assemblies.  The System.Workflow.* assemblies are part of the .NET Framework 4 and provide complete backward compatibility so you can migrate your application to .NET 4 with no changes to your workflow code. Designers One of the most visible areas of improvement is in the workflow designer. Usability and performance were key goals for the team for the VS 2010 release.  The designer now supports the ability to work with much larger workflows without a degradation in performance and designers are all based on Windows Presentation Foundation (WPF), taking full advantage of the ric...