Sick Gaming
Announcing ASP.NET Providers Connected Service Visual Studio Extension - Printable Version

+- Sick Gaming (https://www.sickgaming.net)
+-- Forum: Programming (https://www.sickgaming.net/forum-76.html)
+--- Forum: C#, Visual Basic, & .Net Frameworks (https://www.sickgaming.net/forum-79.html)
+--- Thread: Announcing ASP.NET Providers Connected Service Visual Studio Extension (/thread-85063.html)



Announcing ASP.NET Providers Connected Service Visual Studio Extension - xSicKxBot - 06-04-2018

Announcing ASP.NET Providers Connected Service Visual Studio Extension

<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/announcing-asp-net-providers-connected-service-visual-studio-extension.png" width="986" height="551" title="" alt="" /></div><div><p><span><a href="https://msdn.microsoft.com/en-us/library/aa479020.aspx">Provider pattern</a></span> was introduced in ASP.NET 2.0 and it gives the developers the flexibility of where to store the state of ASP.NET features (e.g. Session State, Membership, Output Cache etc.). In ASP.NET 4.6.2, we added async support for <span><a href="https://blogs.msdn.microsoft.com/webdev/2016/09/29/introducing-the-asp-net-async-sessionstate-module/">Session State Provider</a></span> and Output Cache Provider.  These providers provide much better scalability, and enables the web application to adapt to the cloud environment.  Furthermore, , we also released <span><a href="https://www.nuget.org/packages/Microsoft.AspNet.SessionState.SqlSessionStateProviderAsync/">SqlSessionStateProviderAsync</a></span>, <span><a href="https://www.nuget.org/packages/Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync/">CosmosDBSessionStateProviderAsync</a></span>, <span><a href="https://www.nuget.org/packages/Microsoft.Web.RedisSessionStateProvider/3.0.0-preview">RedisSessionStateProvider</a></span> and <span><a href="https://www.nuget.org/packages/Microsoft.AspNet.OutputCache.SQLAsyncOutputCacheProvider/">SQLAsyncOutputCacheProvider</a></span>.  Through these providers the web applications can store the Session State in Azure resources like, SQL Azure, CosmosDB, and Redis Cache, and Output Cache in SQL Azure.  With these options, it may be not very straightforward to pick one and configure it right in the application.  Today we are releasing <a href="https://marketplace.visualstudio.com/items?itemName=AspnetTeam.AspnetProvidersConnectedService">ASP.NET Providers Connected Service Visual Studio Extension</a> to help you pick the right provider and configure it properly to work with Azure resources.  This extension will be your one-stop shop where you can install and configure all the ASP.NET providers that are Azure ready.</p>
<h2>How to install the extension</h2>
<p>The ASP.NET Providers Connected Service Extension can be installed on Visual Studio 2017. You can install it through Extensions and Updates in Visual Studio and type “ASP.NET Providers Connected Service” in the search box. Or you can download the extension from <a href="https://marketplace.visualstudio.com/items?itemName=AspnetTeam.AspnetProvidersConnectedService">Visual Studio MarketPlace</a>.</p>
<h2>How to use the extension</h2>
<p>To use the Extension, you need to make sure that your web application targets to .NET Framework 4.6.2 or higher.  You can open the extension through right clicking on the project, selecting Add and clicking on Connected Service. You will see all the Connected Services installed on your VS which apply to your project.</p>
<p><a href="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/announcing-asp-net-providers-connected-service-visual-studio-extension.png"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/announcing-asp-net-providers-connected-service-visual-studio-extension.png" alt="" class="aligncenter size-full wp-image-13705" width="986" height="551" /></a></p>
<p>After clicking on Microsoft ASP.NET Providers extension. You will see the following wizard window, you can choose the provider you want to install and configure for your ASP.NET web application. Currently we have two sets of providers, Session State providers and Output Cache provider.</p>
<p><a href="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/announcing-asp-net-providers-connected-service-visual-studio-extension-1.png"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/announcing-asp-net-providers-connected-service-visual-studio-extension-1.png" alt="" class="aligncenter size-full wp-image-13715" width="803" height="554" /></a></p>
<p>Select a provider and click on the Next button. You will see a list of providers that apply to your application, which connects with Azure resources. Currently we have SQL SessionState provider, CosmosDB SessionState provider, RedisCache Sessionstate provider and SQL OutputCache provider.</p>
<p><a href="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/announcing-asp-net-providers-connected-service-visual-studio-extension-2.png"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/announcing-asp-net-providers-connected-service-visual-studio-extension-2.png" alt="" class="aligncenter size-full wp-image-13725" width="807" height="552" /></a></p>
<p>After the provider is chosen, the wizard window will lead you to select an Azure instance which will be used by the provider selected.  In order to fetch the Azure instances that apply to the selected provider, you will need to sign in with your account in Visual Studio.   Then Select an Azure instance and click on the Finish button, the extension will install the relevant Nuget packages and update the web.config file to connect the provider with that selected Azure instance.</p>
<p><a href="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/announcing-asp-net-providers-connected-service-visual-studio-extension-3.png"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/announcing-asp-net-providers-connected-service-visual-studio-extension-3.png" alt="" class="aligncenter size-full wp-image-13955" width="805" height="551" /></a></p>
<h2>Things to be aware of</h2>
<ol>
<li>If the application is already configured with a provider and you want to install a same type of provider, you need to remove that provider first. E.g. your application is using SQL SessionState provider and you want to switch to CosmosDB SessionState provider. In this case, you need to remove the SessionState Provider settings in the web.config, then you can use ASP.NET Providers Connected Services to install and configure the CosmosDB SessionState provider.</li>
<li>If you are installing Async SQL SessionState provider or Async SQL OutputCache provider, you need to replace the user name and password in the connection string in web.config added by ASP.NET Providers Connected Services. As you may have multiple accounts in your Azure SQL Database instance.</li>
</ol>
<h2>Summary</h2>
<p>ASP.NET Providers Connected Services helps you install and configure ASP.NET providers for your web application to consume Azure services. Our goal of this Visual Studio extension is to make it easier and provide a central place to help you configure different providers for the ASP.NET web applications and connect your web applications with Azure. Please install the extension from <a href="https://marketplace.visualstudio.com/items?itemName=AspnetTeam.AspnetProvidersConnectedService">Visual Studio Marketplace</a> today and let us know your feedback.</p>
</div>