Created
May 28, 2016 04:34
-
-
Save trinnguyen/8f057d2d78679970aee551a8a2fd090f to your computer and use it in GitHub Desktop.
Source code of Azure Mobile Server SDK - Quickstart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---------------------------------------------------------------------------- | |
// 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