Enterprise Framework

Software Solutions in the Enterprise

NodeJS Code for Chat Application with Redis

Sign up for a FREE Redis DB account at RedisLab.

After logging into RedisLabs, click on Manage My Resources
Click "New Redis Subscription"
Choose the Standard Tab > 30MB Free Version

Enter a Resource Name (Example: MyRedisDb)
Enter a Password (Example: P@ssw0rd)
Click "Activate".

This will take you the activation screen.

Click on My Resources

Click on the newly created Db (Example: MyRedisDb)
You will use the EndPoint defined for using within your chat application

  1. Unzip the NodeChat.zip file to a directory
  2. Edit Chat_App.js and Set:
  3. var redisPort = (Example:  12345)
  4. var redisUrl = (Example: pub-redis-12345.us-east-1-2.3.ecc.data.com)
  5. var redisPassword = (Example: P@ssw0rd)
  6. Save.
Run the chat app:  node chat_app.js

Download the Chat App: chat_app.zip (3.5MB)

Related links:  Node JS Chat on Azure App Service

Visual Studio 2013 Ultimate - (Miscellaneous Files) appears in Project Dropdown

In Visual Studio 2013 Ultimate with a CS file open within a Class project, the project name appears as "(Miscellaneous Files)". 
This Class project was a mixture of .CS files and Xaml workflow files.

Solution:

  1. I selected all the Xaml files and right clicked them and choose "Exclude From Project"
  2. I selected "Show All Files" in Solution Explorer for the project
  3. I selected all the Xaml files I had originally excluded and right clicked them and choose "Include In Project"

Re-open a .CS file and see if the project drop down lists "(Miscellaneous Files)"

OSI Model : Wikipedia Reference

How To : Google Calendar v3 API with C#


Google Calendar API

Google Calendar APIs Explorer
 
Google.Apis.Calendar.v3 Client Library Nuget Package

Google API : Calendar API Client Library for .NET

Google Calendar API : Calendar API .NET Quickstart

Google Calendar API : Google Apps Calendar API : Download client libraries

Google Calendar API : API Reference

Google Calendar API : Supported Google APIs

Google Calendar API : Get Started with the Google Calendar API

Google Calendar API : Client Library for .NET

Google+ Platform : Quick-Start sample app for C# / .NET

Google Identity

Google API DotNet Client

.NET Client Library Developer's Guide

Google GData

How To : MSDN .NET Framework 4.5 ADO.NET Asynchronous Programming Examples : Legacy, New, Mixing Patterns, more...

How to .NET Framework 4.5 ADO.NET examples on Asynchronous Programming Examples

I found this great MSDN reference for examples on Asynchronous Programming

https://msdn.microsoft.com/en-us/library/hh211418%28v=vs.110%29.aspx

  • Asynchronous Programming
  • Legacy Asynchronous Programming
    • SqlCommand.BeginExecuteNonQuery
    • SqlCommand.BeginExecuteReader
    • SqlCommand.BeginExecuteXmlReader
  • Asynchronous Programming Features Added in .NET Framework 4.5
    • For more information about the asynchronous programming feature that was introduced in .NET Framework 4.5, see:
      • Visual Studio Asynchronous Programming
      • Using SqlDataReader’s new async methods in .Net 4.5 (Part 1)
      • Using SqlDataReader’s new async methods in .Net 4.5 (Part 2)
    • The following methods were added in .NET Framework 4.5 to support asynchronous programming:
      • DbConnection.OpenAsync
      • DbCommand.ExecuteDbDataReaderAsync
      • DbCommand.ExecuteNonQueryAsync
      • DbCommand.ExecuteReaderAsync
      • DbCommand.ExecuteScalarAsync
      • GetFieldValueAsync
      • IsDBNullAsync
      • DbDataReader.NextResultAsync
      • DbDataReader.ReadAsync
      • SqlConnection.OpenAsync
      • SqlCommand.ExecuteNonQueryAsync
      • SqlCommand.ExecuteReaderAsync
      • SqlCommand.ExecuteScalarAsync
      • SqlCommand.ExecuteXmlReaderAsync
      • SqlDataReader.NextResultAsync
      • SqlDataReader.ReadAsync
      • SqlBulkCopy.WriteToServerAsync
    • Synchronous to Asynchronous Connection Open Example
    • Adding the New Asynchronous Feature in an Existing Application (Mixing Old and New Patterns) Example
    • Using the Base Provider Model and the New Asynchronous Feature Example
    • Using SQL Transactions and the New Asynchronous Feature Example
    • Using SQL Transactions and the New Asynchronous Feature Example
    • Cancelling an Asynchronous Operation Example
    • Asynchronous Operations with SqlBulkCopy Example
    • Asynchronously Using Multiple Commands with MARS Example
    • Asynchronously Reading and Updating Data with MARS Example

Apache Cordova with Visual Studio 2013 CTP3.1 or Visual Studio 2015

Microsoft has released the Apache Cordova Tools for Visual Studio.  The entire download will actually take a while.

Apache Cordova is a platform for building native mobile applications using HTML, CSS and JavaScript.  

Apache Cordova is a set of device APIs that allow a mobile app developer to access native device function such as the camera or accelerometer from JavaScript. Combined with a UI framework such as jQuery Mobile or Dojo Mobile or Sencha Touch, this allows a smartphone app to be developed with just HTML, CSS, and JavaScript.

Microsoft Visual Studio Tools for Apache Cordova allow you to use Visual Studio to develop Cordova based apps.

Apache Cordova :  http://cordova.apache.org/
Microsoft Visual Studio Tools For Apache Cordova : http://www.visualstudio.com/en-US/explore/cordova-vs

Windows Install Options

OR


Mac Install Requirements and Setup


Articles for Cordova using Visual Studio

NOTE: Updated 5/31 for updated links to Visual Studio Tools for Apache Cordova CTP 3.1 from 3.0

How To : ASP.NET MVC With Microsoft Identity and Unity Bootstrapper

How To : ASP.NET MVC With Microsoft Identity and Unity Bootstrapper

NEW VERSIONHow To : ASP.NET MVC With Microsoft Identity with GUID ID  and Unity Injection

  1. Add the Unity Bootstrapper for ASP.NET MVC Nuget package from Microsoft.
    1. In your Visual Studio 2013 Solution > right click your web project > click Management NuGet Packages
    2. From the left menu, choose Online > All
    3. In the upper right search box > Search Online (Ctrl + E)  > type Unity bootstrapper for ASP.NET MVC by Microsoft
    4. Select Unity bootstrapper for ASP.NET MVC and choose Install
    5. Click Close after install completes
  2. Modify Web Project/App_Start/UnityConfig.cs
    1. Update the using Namespaces to:

      using System;
      using System.Data.Entity;
      using Microsoft.AspNet.Identity;
      using Microsoft.AspNet.Identity.EntityFramework;
      using Microsoft.Practices.Unity;
      using Microsoft.Practices.Unity.Configuration;
      using MicrosoftIdentity.Controllers;
      using MicrosoftIdentity.Models;
      Update RegisterTypes Method

              public static void RegisterTypes(IUnityContainer container)
              {
                  // NOTE: To load from web.config uncomment the line below. Make sure to add a Microsoft.Practices.Unity.Configuration to the using statements.
                  // container.LoadConfiguration();

                  // TODO: Register your types here
                  container.RegisterType<IUserStore<ApplicationUser>, UserStore<ApplicationUser>>();
                  container.RegisterType<UserManager<ApplicationUser>>();
                  container.RegisterType<DbContext, ApplicationDbContext>();
                  container.RegisterType<ApplicationUserManager>();
                  container.RegisterType<AccountController>(new InjectionConstructor());
              }

ASP.NET MVC with Unity Bootstrapper Source Files:  MicrosoftIdentityWithUnityBootstrapper.zip (2.6MB)