Visual Studio 2015 Update 3 – Download

Today Microsoft has released Update 3 for Visual Studio 2015. Visual Studio 2015 Update 3 includes a variety of capability improvements and bug fixes. To find out what’s new, see the Visual Studio 2015 Update 3 Release Notes. For a list of fixed bugs and known issues, see the Visual Studio 2015 Update 3 MSDN Article.

Download:
Visual Studio Community 2015 with Update 3 – Web Installer –  ISO
Visual Studio Enterprise 2015 with Update 3 – Web Install –  ISO
Visual Studio Professional 2015 with Update 3 – Web Installer –  ISO
Visual Studio 2015 Update 3 – Web InstallerISO
Visual Studio Team Foundation Server 2015 with Update 3 – Web Installer –  ISO
Visual Studio Test Professional 2015 – Web InstallerISO
Visual Studio Express 2015 for Windows 10 – here
Visual Studio Express 2015 for Web – here
Visual Studio Express 2015 for Desktop – here

.NET Core 1.0 and ASP.NET Core 1.0 released (RTM)

Microsoft has released final version of .NET Core 1.0 and ASP.NET Core 1.0 today. During May 2016, Microsoft has released RC2 version of the same framework hinting the release of final version soon, within a month Microsoft has released final version (Release to Manufacture).

With this release, you can start building your next application today using .NET Core, for Windows, Linux, Android, macOS, and iOS.

Download .NET Core from https://www.microsoft.com/net/core

Go through following links to learn more about .NET Core and Getting Started with Development:

Visual Studio 2015 Update 2–Download

Today Microsoft has released Update 2 for Visual Studio 2015. Visual Studio 2015 Update 2 includes a variety of capability improvements and bug fixes. To find out what’s new, see the Visual Studio 2015 Update 2 Release Notes. For a list of fixed bugs and known issues, see the Visual Studio 2015 Update 2 MSDN Article.

Download:
Visual Studio Community 2015 with Update 2 – Web Installer –  ISO
Visual Studio Enterprise 2015 with Update 2 – Web Install –  ISO
Visual Studio Professional 2015 with Update 2 – Web Installer –  ISO
Visual Studio 2015 Update 2 – Web InstallerISO
Visual Studio Team Foundation Server 2015 with Update 2 – Web Installer –  ISO
Visual Studio Test Professional 2015 – Web InstallerISO
Visual Studio Express 2015 for Windows 10 – here
Visual Studio Express 2015 for Web – here
Visual Studio Express 2015 for Desktop – here

Back to Basics : Singleton Design Pattern using System.Lazy type

This article takes you to a simpler/alternative approach in making a Singleton Design Pattern implementation using System.Lazy class rather that using our traditional approach.

Singleton Design Pattern implementation without lazy initialization:

– This code is thread safe enabled

[code language=”csharp” padlinenumbers=”true”]
/// <summary>
/// Singleton class
/// </summary>
public class AppConfig
{

private AppConfig()
{

}

/// <summary>
/// Gets the current date time.
/// </summary>
/// <value>
/// The current date time.
/// </value>
public DateTime CurrentDateTime
{
get
{
return DateTime.Now;
}
}
/// <summary>
/// The _config
/// </summary>
private static AppConfig _config;

/// <summary>
/// The pad lock for maintaining a thread lock.
/// </summary>
private static readonly Object padLock = new object();

/// <summary>
/// Gets the instance.
/// </summary>
/// <value>
/// The instance.
/// </value>
public static AppConfig Instance
{
get
{

if (_config == null)
{
lock (padLock) // making thread-safe
{
//{
if (_config == null) //second level check to make sure, within the short span, another concurent thread didnt initialize the object.
{
_config = new AppConfig();
}
}
}
//}

return _config;
}
}
}
[/code]

This approach ensures that only one instance is created and only when the instance is needed. Also, the variable is declared to be volatile to ensure that assignment to the instance variable completes before the instance variable can be accessed. Lastly, this approach uses a padLock instance to lock on, rather than locking on the type itself, to avoid deadlocks.

Another variant using Lazy initialization using static constructor and thread safe since initialization is handled during runtime within readonly variable declaration.  This will be thread-safe any ways.

[code language=”csharp”]
/// <summary>
/// a Simpler version of Singleton class with lazy initialization.
/// </summary>
public class AppConfigLazy1
{
// static holder for instance, will not get initialized until first use, due to static contructor.
private static readonly AppConfigLazy1 _instance = new AppConfigLazy1();

/// <summary>
/// Prevents a default instance of the <see cref=&quot;AppConfigLazy1&quot;/> class from being created.
/// </summary>
private AppConfigLazy1()
{

}

/// <summary>
/// for Lazy Initializes the <see cref=&quot;AppConfigLazy1&quot;/> class.
/// </summary>
static AppConfigLazy1()
{

}

public static AppConfigLazy1 Instance
{
get
{
return _instance;
}
}
}
[/code]

Now with .NET 4.0 onwards there is a better way of doing this using .NET Runtime methods using System.Lazy type. System.Lazy type is mainly used in Entity Framework context, but we can use the same in implementing lazy loading where ever we have to deal with memory intensive object or collection of objects.

System.Lazy type  guarantees thread-safe lazy-construction. (By default, all public and protected members of the Lazy class are thread safe and may be used concurrently from multiple threads.)

.NET Framework Support in: 4.6, 4.5, 4

[code language=”csharp” wraplines=”false” htmlscript=”false” padlinenumbers=”true”]
/// <summary>
/// a Simpler version of Singleton class with lazy initialization.
/// </summary>
public class AppConfigLazy2
{
// static holder for instance, need to use lambda to construct since constructor private
private static readonly Lazy<AppConfigLazy2> _instance = new Lazy<AppConfigLazy2>(() => new AppConfigLazy2());

/// <summary>
/// Prevents a default instance of the <see cref=&quot;AppConfigLazy2&quot;/> class from being created.
/// </summary>
private AppConfigLazy2()
{

}

public static AppConfigLazy2 Instance
{
get
{
return _instance.Value;
}
}

/// <summary>
/// Gets the current date time.
/// </summary>
/// <value>
/// The current date time.
/// </value>
public DateTime CurrentDateTime
{
get
{
return DateTime.Now;
}
}
}

[/code]

That’s more than one way doing Singleton Pattern Implementation right?, hope that was helpful to you  Some reference links are given below:

New Certification – MCSD – Azure Solution Architect

Microsoft has made availability of new MCSD certification called as “MCSD – Azure Solutions Architect“.

Required Exams:
070-532: Developing Microsoft Azure Solutions
070-533: Implementing Microsoft Azure Infrastructure Solutions
070-534: Architecting Microsoft Azure Solutions

Once you complete the above required exams you will be awarded MCSD – Azure Solutions Architect certificate valid for 2 years.

PS: You will have to retake the renewal exam every two years to stay on as an MSDN Azure Solutions Architect.

For more details on the certification: https://www.microsoft.com/learning/en-us/mcsd-azure-architect-certification.aspx