Skip to content

Commit

Permalink
Merge pull request #10 from CloudBreadProject/2.0.0-dev
Browse files Browse the repository at this point in the history
2.0.0 dev-Alpha
  • Loading branch information
CloudBreadPaPa committed Feb 18, 2016
2 parents bade308 + 7b2b209 commit 9b7ad68
Show file tree
Hide file tree
Showing 2,105 changed files with 3,232 additions and 2,212,432 deletions.
68 changes: 43 additions & 25 deletions CloudBread.sln
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30723.0
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CloudBread", "CloudBread\CloudBread.csproj", "{1A81A28E-0DA0-43EE-BDC9-02E964B8C698}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CloudBread", "CloudBread\CloudBread.csproj", "{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CloudBreadLib", "CloudBreadLib\CloudBreadLib.csproj", "{2882D610-5E26-40CC-AAF4-E537A102CCB2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CloudBreadWindowsStoreAppTestTool", "CloudBreadWindowsStoreAppTestTool\CloudBreadWindowsStoreAppTestTool.csproj", "{B469764A-83A9-403E-B7D6-028CDC6B2FDC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CloudBreadAdminWeb", "CloudBreadAdminWeb\CloudBreadAdminWeb.csproj", "{5F8E5960-3793-417F-BB11-6642E0ACA4F8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CloudBreadWindowsStoreAppTestTool", "CloudBreadWindowsStoreAppTestTool\CloudBreadWindowsStoreAppTestTool.csproj", "{B469764A-83A9-403E-B7D6-028CDC6B2FDC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -23,26 +23,54 @@ Global
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1A81A28E-0DA0-43EE-BDC9-02E964B8C698}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1A81A28E-0DA0-43EE-BDC9-02E964B8C698}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1A81A28E-0DA0-43EE-BDC9-02E964B8C698}.Debug|ARM.ActiveCfg = Debug|Any CPU
{1A81A28E-0DA0-43EE-BDC9-02E964B8C698}.Debug|x64.ActiveCfg = Debug|Any CPU
{1A81A28E-0DA0-43EE-BDC9-02E964B8C698}.Debug|x86.ActiveCfg = Debug|Any CPU
{1A81A28E-0DA0-43EE-BDC9-02E964B8C698}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1A81A28E-0DA0-43EE-BDC9-02E964B8C698}.Release|Any CPU.Build.0 = Release|Any CPU
{1A81A28E-0DA0-43EE-BDC9-02E964B8C698}.Release|ARM.ActiveCfg = Release|Any CPU
{1A81A28E-0DA0-43EE-BDC9-02E964B8C698}.Release|x64.ActiveCfg = Release|Any CPU
{1A81A28E-0DA0-43EE-BDC9-02E964B8C698}.Release|x86.ActiveCfg = Release|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Debug|ARM.ActiveCfg = Debug|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Debug|ARM.Build.0 = Debug|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Debug|x64.ActiveCfg = Debug|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Debug|x64.Build.0 = Debug|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Debug|x86.ActiveCfg = Debug|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Debug|x86.Build.0 = Debug|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Release|Any CPU.Build.0 = Release|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Release|ARM.ActiveCfg = Release|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Release|ARM.Build.0 = Release|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Release|x64.ActiveCfg = Release|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Release|x64.Build.0 = Release|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Release|x86.ActiveCfg = Release|Any CPU
{B9B3E87D-B548-415E-8D4A-2B8D45512AF8}.Release|x86.Build.0 = Release|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Debug|ARM.ActiveCfg = Debug|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Debug|ARM.Build.0 = Debug|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Debug|x64.ActiveCfg = Debug|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Debug|x64.Build.0 = Debug|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Debug|x86.ActiveCfg = Debug|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Debug|x86.Build.0 = Debug|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Release|Any CPU.Build.0 = Release|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Release|ARM.ActiveCfg = Release|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Release|ARM.Build.0 = Release|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Release|x64.ActiveCfg = Release|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Release|x64.Build.0 = Release|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Release|x86.ActiveCfg = Release|Any CPU
{2882D610-5E26-40CC-AAF4-E537A102CCB2}.Release|x86.Build.0 = Release|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Debug|ARM.ActiveCfg = Debug|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Debug|ARM.Build.0 = Debug|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Debug|x64.ActiveCfg = Debug|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Debug|x64.Build.0 = Debug|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Debug|x86.ActiveCfg = Debug|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Debug|x86.Build.0 = Debug|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Release|Any CPU.Build.0 = Release|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Release|ARM.ActiveCfg = Release|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Release|ARM.Build.0 = Release|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Release|x64.ActiveCfg = Release|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Release|x64.Build.0 = Release|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Release|x86.ActiveCfg = Release|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Release|x86.Build.0 = Release|Any CPU
{B469764A-83A9-403E-B7D6-028CDC6B2FDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B469764A-83A9-403E-B7D6-028CDC6B2FDC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B469764A-83A9-403E-B7D6-028CDC6B2FDC}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
Expand All @@ -67,16 +95,6 @@ Global
{B469764A-83A9-403E-B7D6-028CDC6B2FDC}.Release|x86.ActiveCfg = Release|x86
{B469764A-83A9-403E-B7D6-028CDC6B2FDC}.Release|x86.Build.0 = Release|x86
{B469764A-83A9-403E-B7D6-028CDC6B2FDC}.Release|x86.Deploy.0 = Release|x86
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Debug|ARM.ActiveCfg = Debug|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Debug|x64.ActiveCfg = Debug|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Debug|x86.ActiveCfg = Debug|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Release|Any CPU.Build.0 = Release|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Release|ARM.ActiveCfg = Release|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Release|x64.ActiveCfg = Release|Any CPU
{5F8E5960-3793-417F-BB11-6642E0ACA4F8}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Binary file removed CloudBread.v12.suo
Binary file not shown.
66 changes: 66 additions & 0 deletions CloudBread/App_Start/Startup.MobileApp.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.Entity;
using System.Web.Http;
using Microsoft.Azure.Mobile.Server;
using Microsoft.Azure.Mobile.Server.Authentication;
using Microsoft.Azure.Mobile.Server.Config;
using CloudBread.DataObjects;
using CloudBread.Models;
using Owin;

namespace CloudBread
{
public partial class Startup
{
public static void ConfigureMobileApp(IAppBuilder app)
{
HttpConfiguration config = new HttpConfiguration();

new MobileAppConfiguration()
.UseDefaultConfiguration()
.ApplyTo(config);

// Use Entity Framework Code First to create database tables based on your DbContext
Database.SetInitializer(new MobileServiceInitializer());

MobileAppSettingsDictionary settings = config.GetMobileAppSettingsProvider().GetMobileAppSettings();

if (string.IsNullOrEmpty(settings.HostName))
{
app.UseAppServiceAuthentication(new AppServiceAuthenticationOptions
{
// This middleware is intended to be used locally for debugging. By default, HostName will
// only have a value when running in an App Service application.
SigningKey = ConfigurationManager.AppSettings["SigningKey"],
ValidAudiences = new[] { ConfigurationManager.AppSettings["ValidAudience"] },
ValidIssuers = new[] { ConfigurationManager.AppSettings["ValidIssuer"] },
TokenHandler = config.GetAppServiceTokenHandler()
});
}

app.UseWebApi(config);
}
}

public class MobileServiceInitializer : CreateDatabaseIfNotExists<MobileServiceContext>
{
protected override void Seed(MobileServiceContext context)
{
List<TodoItem> todoItems = new List<TodoItem>
{
new TodoItem { Id = Guid.NewGuid().ToString(), Text = "First item", Complete = false },
new TodoItem { Id = Guid.NewGuid().ToString(), Text = "Second item", Complete = false }
};

foreach (TodoItem todoItem in todoItems)
{
context.Set<TodoItem>().Add(todoItem);
}

base.Seed(context);
}
}
}

49 changes: 0 additions & 49 deletions CloudBread/App_Start/WebApiConfig.cs

This file was deleted.

Loading

0 comments on commit 9b7ad68

Please sign in to comment.