Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trinnguyen/8f057d2d78679970aee551a8a2fd090f to your computer and use it in GitHub Desktop.
Save trinnguyen/8f057d2d78679970aee551a8a2fd090f to your computer and use it in GitHub Desktop.
Source code of Azure Mobile Server SDK - Quickstart
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
using System;
using Microsoft.Azure.Mobile.Server.Tables.Config;
namespace Microsoft.Azure.Mobile.Server.Config
{
public static class QuickstartMobileAppConfigurationExtensions
{
public static MobileAppConfiguration UseDefaultConfiguration(this MobileAppConfiguration options)
{
if (options == null)
{
throw new ArgumentNullException("options");
}
return options.AddTables(
new MobileAppTableConfiguration()
.MapTableControllers()
.AddEntityFramework())
.MapApiControllers()
.AddMobileAppHomeController()
.AddPushNotifications();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment