Permalink
Browse files

Multitenancy support for ASP.NET 5.

  • Loading branch information...
Ben Foster
Ben Foster committed Jan 21, 2016
1 parent d7de741 commit 1542b2f081eceb04f74a58846521417733af6c77
Showing with 27,128 additions and 24,656 deletions.
  1. +210 −15 .gitignore
  2. +6 −3 .nuget/NuGet.Config
  3. +37 −36 SaasKit.sln
  4. +0 −52 build/SaasKit.Multitenancy.msbuild
  5. +0 −7 build/build.ps1
  6. +0 −36 build/publish.ps1
  7. +6 −0 global.json
  8. +3 −0 samples/AspNetMvcSample/.bowerrc
  9. +8 −0 samples/AspNetMvcSample/AppTenant.cs
  10. +48 −0 samples/AspNetMvcSample/AppTenantResolver.cs
  11. +23 −0 samples/AspNetMvcSample/AspNetMvcSample.xproj
  12. +467 −0 samples/AspNetMvcSample/Controllers/AccountController.cs
  13. +43 −0 samples/AspNetMvcSample/Controllers/HomeController.cs
  14. +347 −0 samples/AspNetMvcSample/Controllers/ManageController.cs
  15. +183 −0 samples/AspNetMvcSample/Migrations/00000000000000_CreateIdentitySchema.Designer.cs
  16. +152 −0 samples/AspNetMvcSample/Migrations/00000000000000_CreateIdentitySchema.cs
  17. +182 −0 samples/AspNetMvcSample/Migrations/ApplicationDbContextModelSnapshot.cs
  18. +20 −0 samples/AspNetMvcSample/Models/ApplicationDbContext.cs
  19. +13 −0 samples/AspNetMvcSample/Models/ApplicationUser.cs
  20. +9 −0 samples/AspNetMvcSample/MultitenancyOptions.cs
  21. +25 −0 samples/AspNetMvcSample/Properties/launchSettings.json
  22. +12 −0 samples/AspNetMvcSample/Services/IEmailSender.cs
  23. +12 −0 samples/AspNetMvcSample/Services/ISmsSender.cs
  24. +25 −0 samples/AspNetMvcSample/Services/MessageServices.cs
  25. +117 −0 samples/AspNetMvcSample/Startup.cs
  26. +15 −0 samples/AspNetMvcSample/ViewModels/Account/ExternalLoginConfirmationViewModel.cs
  27. +15 −0 samples/AspNetMvcSample/ViewModels/Account/ForgotPasswordViewModel.cs
  28. +22 −0 samples/AspNetMvcSample/ViewModels/Account/LoginViewModel.cs
  29. +27 −0 samples/AspNetMvcSample/ViewModels/Account/RegisterViewModel.cs
  30. +27 −0 samples/AspNetMvcSample/ViewModels/Account/ResetPasswordViewModel.cs
  31. +19 −0 samples/AspNetMvcSample/ViewModels/Account/SendCodeViewModel.cs
  32. +25 −0 samples/AspNetMvcSample/ViewModels/Account/VerifyCodeViewModel.cs
  33. +16 −0 samples/AspNetMvcSample/ViewModels/Manage/AddPhoneNumberViewModel.cs
  34. +27 −0 samples/AspNetMvcSample/ViewModels/Manage/ChangePasswordViewModel.cs
  35. +15 −0 samples/AspNetMvcSample/ViewModels/Manage/ConfigureTwoFactorViewModel.cs
  36. +12 −0 samples/AspNetMvcSample/ViewModels/Manage/FactorViewModel.cs
  37. +21 −0 samples/AspNetMvcSample/ViewModels/Manage/IndexViewModel.cs
  38. +16 −0 samples/AspNetMvcSample/ViewModels/Manage/ManageLoginsViewModel.cs
  39. +14 −0 samples/AspNetMvcSample/ViewModels/Manage/RemoveLoginViewModel.cs
  40. +22 −0 samples/AspNetMvcSample/ViewModels/Manage/SetPasswordViewModel.cs
  41. +19 −0 samples/AspNetMvcSample/ViewModels/Manage/VerifyPhoneNumberViewModel.cs
  42. +10 −0 samples/AspNetMvcSample/Views/Account/ConfirmEmail.cshtml
  43. +35 −0 samples/AspNetMvcSample/Views/Account/ExternalLoginConfirmation.cshtml
  44. +8 −0 samples/AspNetMvcSample/Views/Account/ExternalLoginFailure.cshtml
  45. +31 −0 samples/AspNetMvcSample/Views/Account/ForgotPassword.cshtml
  46. +8 −0 samples/AspNetMvcSample/Views/Account/ForgotPasswordConfirmation.cshtml
  47. +8 −0 samples/AspNetMvcSample/Views/Account/Lockout.cshtml
  48. +90 −0 samples/AspNetMvcSample/Views/Account/Login.cshtml
  49. +42 −0 samples/AspNetMvcSample/Views/Account/Register.cshtml
  50. +43 −0 samples/AspNetMvcSample/Views/Account/ResetPassword.cshtml
  51. +8 −0 samples/AspNetMvcSample/Views/Account/ResetPasswordConfirmation.cshtml
  52. +21 −0 samples/AspNetMvcSample/Views/Account/SendCode.cshtml
  53. +38 −0 samples/AspNetMvcSample/Views/Account/VerifyCode.cshtml
  54. +7 −0 samples/AspNetMvcSample/Views/Home/About.cshtml
  55. +17 −0 samples/AspNetMvcSample/Views/Home/Contact.cshtml
  56. +110 −0 samples/AspNetMvcSample/Views/Home/Index.cshtml
  57. +27 −0 samples/AspNetMvcSample/Views/Manage/AddPhoneNumber.cshtml
  58. +42 −0 samples/AspNetMvcSample/Views/Manage/ChangePassword.cshtml
  59. +79 −0 samples/AspNetMvcSample/Views/Manage/Index.cshtml
  60. +54 −0 samples/AspNetMvcSample/Views/Manage/ManageLogins.cshtml
  61. +38 −0 samples/AspNetMvcSample/Views/Manage/SetPassword.cshtml
  62. +30 −0 samples/AspNetMvcSample/Views/Manage/VerifyPhoneNumber.cshtml
  63. +6 −0 samples/AspNetMvcSample/Views/Shared/Error.cshtml
  64. +69 −0 samples/AspNetMvcSample/Views/Shared/_Layout.cshtml
  65. +22 −0 samples/AspNetMvcSample/Views/Shared/_LoginPartial.cshtml
  66. +14 −0 samples/AspNetMvcSample/Views/Shared/_ValidationScriptsPartial.cshtml
  67. +8 −0 samples/AspNetMvcSample/Views/_ViewImports.cshtml
  68. +3 −0 samples/AspNetMvcSample/Views/_ViewStart.cshtml
  69. +31 −0 samples/AspNetMvcSample/appsettings.json
  70. +10 −0 samples/AspNetMvcSample/bower.json
  71. +45 −0 samples/AspNetMvcSample/gulpfile.js
  72. +11 −0 samples/AspNetMvcSample/package.json
  73. +52 −0 samples/AspNetMvcSample/project.json
  74. +7 −0 samples/AspNetMvcSample/wwwroot/_references.js
  75. +34 −0 samples/AspNetMvcSample/wwwroot/css/site.css
  76. BIN samples/AspNetMvcSample/wwwroot/favicon.ico
  77. BIN samples/AspNetMvcSample/wwwroot/images/ASP-NET-Banners-01.png
  78. BIN samples/AspNetMvcSample/wwwroot/images/ASP-NET-Banners-02.png
  79. BIN samples/AspNetMvcSample/wwwroot/images/Banner-01-Azure.png
  80. BIN samples/AspNetMvcSample/wwwroot/images/Banner-02-VS.png
  81. +1 −0 samples/AspNetMvcSample/wwwroot/js/site.js
  82. +44 −0 samples/AspNetMvcSample/wwwroot/lib/bootstrap/.bower.json
  83. +21 −0 samples/AspNetMvcSample/wwwroot/lib/bootstrap/LICENSE
  84. +587 −0 samples/AspNetMvcSample/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css
  85. +1 −0 samples/AspNetMvcSample/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map
  86. +5 −0 samples/AspNetMvcSample/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css
  87. +6,800 −6,816 ....Multitenancy.Samples.Mvc/Content → AspNetMvcSample/wwwroot/lib/bootstrap/dist/css}/bootstrap.css
  88. +1 −0 samples/AspNetMvcSample/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map
  89. +5 −0 samples/AspNetMvcSample/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css
  90. BIN samples/AspNetMvcSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot
  91. +288 −0 samples/AspNetMvcSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg
  92. BIN samples/AspNetMvcSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf
  93. BIN samples/AspNetMvcSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff
  94. BIN samples/AspNetMvcSample/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2
  95. +2,363 −0 samples/AspNetMvcSample/wwwroot/lib/bootstrap/dist/js/bootstrap.js
  96. +7 −0 samples/AspNetMvcSample/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js
  97. +13 −0 samples/AspNetMvcSample/wwwroot/lib/bootstrap/dist/js/npm.js
  98. +44 −0 samples/AspNetMvcSample/wwwroot/lib/jquery-validation-unobtrusive/.bower.json
  99. +416 −0 samples/AspNetMvcSample/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js
  100. +5 −0 samples/AspNetMvcSample/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js
  101. +40 −0 samples/AspNetMvcSample/wwwroot/lib/jquery-validation/.bower.json
  102. +22 −0 samples/AspNetMvcSample/wwwroot/lib/jquery-validation/LICENSE.md
  103. +998 −0 samples/AspNetMvcSample/wwwroot/lib/jquery-validation/dist/additional-methods.js
  104. +4 −0 samples/AspNetMvcSample/wwwroot/lib/jquery-validation/dist/additional-methods.min.js
  105. +1,398 −0 samples/AspNetMvcSample/wwwroot/lib/jquery-validation/dist/jquery.validate.js
  106. +4 −0 samples/AspNetMvcSample/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js
  107. +38 −0 samples/AspNetMvcSample/wwwroot/lib/jquery/.bower.json
  108. +21 −0 samples/AspNetMvcSample/wwwroot/lib/jquery/MIT-LICENSE.txt
  109. +9,210 −9,803 ...tenancy.Samples.Mvc/Scripts/jquery-1.10.2.js → AspNetMvcSample/wwwroot/lib/jquery/dist/jquery.js}
  110. +5 −0 samples/AspNetMvcSample/wwwroot/lib/jquery/dist/jquery.min.js
  111. +1 −0 samples/AspNetMvcSample/wwwroot/lib/jquery/dist/jquery.min.map
  112. +9 −0 samples/AspNetMvcSample/wwwroot/web.config
  113. +19 −0 samples/AspNetMvcStructureMapSample/AppStart/RouteConfig.cs
  114. +19 −0 samples/AspNetMvcStructureMapSample/AspNetMvcStructureMapSample.xproj
  115. +26 −0 samples/AspNetMvcStructureMapSample/Controllers/HomeController.cs
  116. +23 −0 samples/AspNetMvcStructureMapSample/MessageService.cs
  117. +10 −0 samples/AspNetMvcStructureMapSample/Models/HomeViewModel.cs
  118. +23 −35 samples/{SaasKit.Multitenancy.Samples.Mvc → AspNetMvcStructureMapSample}/Properties/AssemblyInfo.cs
  119. +43 −0 samples/AspNetMvcStructureMapSample/Properties/launchSettings.json
  120. +36 −0 samples/AspNetMvcStructureMapSample/Readme.md
  121. +173 −0 samples/AspNetMvcStructureMapSample/Startup.cs
  122. +15 −0 samples/AspNetMvcStructureMapSample/Views/Home/Index.cshtml
  123. +40 −0 samples/AspNetMvcStructureMapSample/Views/Shared/_Layout.cshtml
  124. +3 −0 samples/AspNetMvcStructureMapSample/Views/_ViewImports.cshtml
  125. +3 −0 samples/AspNetMvcStructureMapSample/Views/_ViewStart.cshtml
  126. +48 −0 samples/AspNetMvcStructureMapSample/project.json
  127. +9 −0 samples/AspNetMvcStructureMapSample/wwwroot/web.config
  128. +10 −0 samples/AspNetSample/AppTenant.cs
  129. +34 −0 samples/AspNetSample/AppTenantResolver.cs
  130. +25 −0 samples/AspNetSample/AspNetSample.xproj
  131. +52 −0 samples/AspNetSample/CachingAppTenantResolver.cs
  132. +25 −0 samples/AspNetSample/Properties/launchSettings.json
  133. +64 −0 samples/AspNetSample/Startup.cs
  134. +32 −0 samples/AspNetSample/project.json
  135. +9 −0 samples/AspNetSample/wwwroot/web.config
  136. +0 −23 samples/SaasKit.Multitenancy.Samples.Mvc/App_Start/RouteConfig.cs
  137. +0 −18 samples/SaasKit.Multitenancy.Samples.Mvc/Content/Site.css
  138. +0 −20 samples/SaasKit.Multitenancy.Samples.Mvc/Content/bootstrap.min.css
  139. +0 −15 samples/SaasKit.Multitenancy.Samples.Mvc/Controllers/HomeController.cs
  140. +0 −1 samples/SaasKit.Multitenancy.Samples.Mvc/Global.asax
  141. +0 −18 samples/SaasKit.Multitenancy.Samples.Mvc/Global.asax.cs
  142. +0 −189 samples/SaasKit.Multitenancy.Samples.Mvc/SaasKit.Multitenancy.Samples.Mvc.csproj
  143. +0 −2,014 samples/SaasKit.Multitenancy.Samples.Mvc/Scripts/bootstrap.js
  144. +0 −21 samples/SaasKit.Multitenancy.Samples.Mvc/Scripts/bootstrap.min.js
  145. +0 −2,671 samples/SaasKit.Multitenancy.Samples.Mvc/Scripts/jquery-1.10.2.intellisense.js
  146. +0 −23 samples/SaasKit.Multitenancy.Samples.Mvc/Scripts/jquery-1.10.2.min.js
  147. +0 −1 samples/SaasKit.Multitenancy.Samples.Mvc/Scripts/jquery-1.10.2.min.map
  148. +0 −1,416 samples/SaasKit.Multitenancy.Samples.Mvc/Scripts/modernizr-2.6.2.js
  149. +0 −73 samples/SaasKit.Multitenancy.Samples.Mvc/Startup.cs
  150. +0 −12 samples/SaasKit.Multitenancy.Samples.Mvc/Views/Home/Index.cshtml
  151. +0 −40 samples/SaasKit.Multitenancy.Samples.Mvc/Views/Shared/_Layout.cshtml
  152. +0 −3 samples/SaasKit.Multitenancy.Samples.Mvc/Views/_ViewStart.cshtml
  153. +0 −34 samples/SaasKit.Multitenancy.Samples.Mvc/Views/web.config
  154. +0 −30 samples/SaasKit.Multitenancy.Samples.Mvc/Web.Debug.config
  155. +0 −31 samples/SaasKit.Multitenancy.Samples.Mvc/Web.Release.config
  156. +0 −61 samples/SaasKit.Multitenancy.Samples.Mvc/Web.config
  157. BIN samples/SaasKit.Multitenancy.Samples.Mvc/fonts/glyphicons-halflings-regular.eot
  158. +0 −228 samples/SaasKit.Multitenancy.Samples.Mvc/fonts/glyphicons-halflings-regular.svg
  159. BIN samples/SaasKit.Multitenancy.Samples.Mvc/fonts/glyphicons-halflings-regular.ttf
  160. BIN samples/SaasKit.Multitenancy.Samples.Mvc/fonts/glyphicons-halflings-regular.woff
  161. +0 −13 samples/SaasKit.Multitenancy.Samples.Mvc/packages.config
  162. +0 −19 src/SaasKit.Multitenancy.Mvc/HttpContextBaseExtensions.cs
  163. +0 −19 src/SaasKit.Multitenancy.Mvc/HttpRequestBaseExtensions.cs
  164. +0 −16 src/SaasKit.Multitenancy.Mvc/Properties/AssemblyInfo.cs
  165. +0 −82 src/SaasKit.Multitenancy.Mvc/SaasKit.Multitenancy.Mvc.csproj
  166. +0 −16 src/SaasKit.Multitenancy.Mvc/SaasKit.Multitenancy.Mvc.nuspec
  167. +0 −6 src/SaasKit.Multitenancy.Mvc/packages.config
  168. +74 −0 src/SaasKit.Multitenancy.StructureMap/MultiTenantStructureMapServiceScopeFactory.cs
  169. +23 −0 src/SaasKit.Multitenancy.StructureMap/Properties/AssemblyInfo.cs
  170. +20 −0 src/SaasKit.Multitenancy.StructureMap/SaasKit.Multitenancy.StructureMap.xproj
  171. +93 −0 src/SaasKit.Multitenancy.StructureMap/_Readme.md
  172. +30 −0 src/SaasKit.Multitenancy.StructureMap/project.json
  173. +0 −19 src/SaasKit.Multitenancy.WebApi/HttpRequestMessageExtensions.cs
  174. +0 −16 src/SaasKit.Multitenancy.WebApi/Properties/AssemblyInfo.cs
  175. +0 −93 src/SaasKit.Multitenancy.WebApi/SaasKit.Multitenancy.WebApi.csproj
  176. +0 −16 src/SaasKit.Multitenancy.WebApi/SaasKit.Multitenancy.WebApi.nuspec
  177. +0 −15 src/SaasKit.Multitenancy.WebApi/app.config
  178. +0 −9 src/SaasKit.Multitenancy.WebApi/packages.config
  179. +0 −45 src/SaasKit.Multitenancy/AppBuilderExtensions.cs
  180. +0 −59 src/SaasKit.Multitenancy/CachedTenantResolver.cs
  181. +0 −21 src/SaasKit.Multitenancy/CurrentUserTenantResolver.cs
  182. +1 −1 src/SaasKit.Multitenancy/Ensure.cs
  183. +3 −3 src/SaasKit.Multitenancy/ITenantResolver.cs
  184. +60 −0 src/SaasKit.Multitenancy/Internal/PrimaryHostnameRedirectMiddleware.cs
  185. +46 −0 src/SaasKit.Multitenancy/Internal/TenantResolutionMiddleware.cs
  186. +48 −0 src/SaasKit.Multitenancy/Internal/TenantUnresolvedRedirectMiddleware.cs
  187. +69 −0 src/SaasKit.Multitenancy/MemoryCacheTenantResolver.cs
  188. +0 −67 src/SaasKit.Multitenancy/Middleware/PrimaryHostnameRedirectMiddleware.cs
  189. +0 −51 src/SaasKit.Multitenancy/Middleware/TenantNotFoundRedirectMiddleware.cs
  190. +0 −39 src/SaasKit.Multitenancy/Middleware/TenantResolutionMiddleware.cs
  191. +14 −0 src/SaasKit.Multitenancy/MultitenancyApplicationBuilderExtensions.cs
  192. +47 −0 src/SaasKit.Multitenancy/MultitenancyHttpContextExtensions.cs
  193. +30 −0 src/SaasKit.Multitenancy/MultitenancyServiceCollectionExtensions.cs
  194. +0 −45 src/SaasKit.Multitenancy/OwinEnvironmentExtensions.cs
  195. +17 −10 src/SaasKit.Multitenancy/Properties/AssemblyInfo.cs
  196. +0 −12 src/SaasKit.Multitenancy/RequestIdentification.cs
  197. +0 −6 src/SaasKit.Multitenancy/RequestIdentificationStrategy.cs
  198. +0 −80 src/SaasKit.Multitenancy/SaasKit.Multitenancy.csproj
  199. +0 −16 src/SaasKit.Multitenancy/SaasKit.Multitenancy.nuspec
  200. +19 −0 src/SaasKit.Multitenancy/SaasKit.Multitenancy.xproj
  201. +3 −3 src/SaasKit.Multitenancy/TenantContext.cs
  202. +0 −20 src/SaasKit.Multitenancy/UriTenantResolver.cs
  203. +0 −5 src/SaasKit.Multitenancy/packages.config
  204. +28 −0 src/SaasKit.Multitenancy/project.json
  205. +36 −0 tests/SaasKit.Multitenancy.Tests/MultitenancyHttpContextExtensionsTests.cs
  206. +5 −18 tests/SaasKit.Multitenancy.Tests/Properties/AssemblyInfo.cs
  207. +0 −67 tests/SaasKit.Multitenancy.Tests/SaasKit.Multitenancy.Tests.csproj
  208. +20 −0 tests/SaasKit.Multitenancy.Tests/SaasKit.Multitenancy.Tests.xproj
  209. +0 −4 tests/SaasKit.Multitenancy.Tests/packages.config
  210. +32 −0 tests/SaasKit.Multitenancy.Tests/project.json
View
@@ -1,17 +1,212 @@
-[Oo]bj
-[Bb]in
-*.user
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
*.suo
-*.[Cc]ache
-*.bak
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+x64/
+x86/
+build/
+bld/
+[Bb]in/
+[Oo]bj/
+
+# Visual Studio 2015 cache/options directory
+.vs/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUNIT
+*.VisualState.xml
+TestResult.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# DNX
+project.lock.json
+artifacts/
+
+*_i.c
+*_p.c
+*_i.h
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
*.ncb
-*.log
-*.DS_Store
-[Tt]humbs.db
-_ReSharper.*
-*.resharper
-Ankh.NoLoad
-tools
-packages
-artifacts
-TestResult.xml
+*.opensdf
+*.sdf
+*.cachefile
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# JustCode is a .NET coding add-in
+.JustCode
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+## TODO: Comment the next line if you want to checkin your
+## web deploy settings but do note that will include unencrypted
+## passwords
+#*.pubxml
+
+*.publishproj
+
+# NuGet Packages
+*.nupkg
+# The packages folder can be ignored because of Package Restore
+**/packages/*
+# except build/, which is used as an MSBuild target.
+!**/packages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/packages/repositories.config
+
+# Windows Azure Build Output
+csx/
+*.build.csdef
+
+# Windows Store app package directory
+AppPackages/
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!*.[Cc]ache/
+
+# Others
+ClientBin/
+[Ss]tyle[Cc]op.*
+~$*
+*~
+*.dbmdl
+*.dbproj.schemaview
+*.pfx
+*.publishsettings
+node_modules/
+orleans.codegen.cs
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+
+# SQL Server files
+*.mdf
+*.ldf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# LightSwitch generated files
+GeneratedArtifacts/
+_Pvt_Extensions/
+ModelManifest.xml
View
@@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
- <solution>
- <add key="disableSourceControlIntegration" value="true" />
- </solution>
+ <solution>
+ <add key="disableSourceControlIntegration" value="true" />
+ </solution>
+ <packageSources>
+ <add key="NuGet" value="https://api.nuget.org/v3/index.json" />
+ </packageSources>
</configuration>
View
@@ -1,61 +1,62 @@

Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2013
-VisualStudioVersion = 12.0.31101.0
+# Visual Studio 14
+VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SaasKit.Multitenancy", "src\SaasKit.Multitenancy\SaasKit.Multitenancy.csproj", "{75649D57-67F8-42FF-9751-F1E76127F64E}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{78843526-43BB-49AD-A0DD-5C1630F57D4F}"
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C3B2A3F2-5EF9-4128-8035-255A1AC1AF7B}"
ProjectSection(SolutionItems) = preProject
- .nuget\NuGet.Config = .nuget\NuGet.Config
- .nuget\NuGet.exe = .nuget\NuGet.exe
- .nuget\NuGet.targets = .nuget\NuGet.targets
+ global.json = global.json
+ LICENSE.md = LICENSE.md
+ README.md = README.md
EndProjectSection
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SaasKit.Multitenancy.Mvc", "src\SaasKit.Multitenancy.Mvc\SaasKit.Multitenancy.Mvc.csproj", "{F07816BE-1844-48DF-AF87-4A3B772C26A3}"
+Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "SaasKit.Multitenancy", "src\SaasKit.Multitenancy\SaasKit.Multitenancy.xproj", "{D4B866A0-FEA9-4279-8AAF-4B71A6FB70BB}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{3BF6E052-C932-4DD5-B5C6-3A014282CDF3}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SaasKit.Multitenancy.WebApi", "src\SaasKit.Multitenancy.WebApi\SaasKit.Multitenancy.WebApi.csproj", "{D969FF03-03A9-4DF4-9042-BB00F09CCA50}"
+Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "AspNetSample", "samples\AspNetSample\AspNetSample.xproj", "{A4ECD7AC-2007-4BDE-A8D9-E122CAE6EDAC}"
EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{896022B7-F488-412B-A917-331523E34B0A}"
+Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "AspNetMvcSample", "samples\AspNetMvcSample\AspNetMvcSample.xproj", "{66DE6E51-4668-4DBE-81A8-F6033C30F7CF}"
EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{C54F4DED-9700-456C-AA78-4E69BD07353D}"
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{485AA823-29AD-4346-8857-331F81A3713C}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SaasKit.Multitenancy.Samples.Mvc", "samples\SaasKit.Multitenancy.Samples.Mvc\SaasKit.Multitenancy.Samples.Mvc.csproj", "{F72E7862-9B06-4AB3-81A1-AC8B447B50F1}"
+Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "SaasKit.Multitenancy.Tests", "tests\SaasKit.Multitenancy.Tests\SaasKit.Multitenancy.Tests.xproj", "{2BD23575-488B-44DB-8966-C45FDBF0E2EF}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SaasKit.Multitenancy.Tests", "tests\SaasKit.Multitenancy.Tests\SaasKit.Multitenancy.Tests.csproj", "{FC47A35E-7331-4AF1-B2E5-A7F02A005125}"
+Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "SaasKit.Multitenancy.StructureMap", "src\SaasKit.Multitenancy.StructureMap\SaasKit.Multitenancy.StructureMap.xproj", "{B279D429-8CE4-458E-A3CB-355C5E7502B8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {75649D57-67F8-42FF-9751-F1E76127F64E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {75649D57-67F8-42FF-9751-F1E76127F64E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {75649D57-67F8-42FF-9751-F1E76127F64E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {75649D57-67F8-42FF-9751-F1E76127F64E}.Release|Any CPU.Build.0 = Release|Any CPU
- {F07816BE-1844-48DF-AF87-4A3B772C26A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F07816BE-1844-48DF-AF87-4A3B772C26A3}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F07816BE-1844-48DF-AF87-4A3B772C26A3}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F07816BE-1844-48DF-AF87-4A3B772C26A3}.Release|Any CPU.Build.0 = Release|Any CPU
- {D969FF03-03A9-4DF4-9042-BB00F09CCA50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D969FF03-03A9-4DF4-9042-BB00F09CCA50}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D969FF03-03A9-4DF4-9042-BB00F09CCA50}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D969FF03-03A9-4DF4-9042-BB00F09CCA50}.Release|Any CPU.Build.0 = Release|Any CPU
- {F72E7862-9B06-4AB3-81A1-AC8B447B50F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F72E7862-9B06-4AB3-81A1-AC8B447B50F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F72E7862-9B06-4AB3-81A1-AC8B447B50F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F72E7862-9B06-4AB3-81A1-AC8B447B50F1}.Release|Any CPU.Build.0 = Release|Any CPU
- {FC47A35E-7331-4AF1-B2E5-A7F02A005125}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {FC47A35E-7331-4AF1-B2E5-A7F02A005125}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {FC47A35E-7331-4AF1-B2E5-A7F02A005125}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {FC47A35E-7331-4AF1-B2E5-A7F02A005125}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D4B866A0-FEA9-4279-8AAF-4B71A6FB70BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D4B866A0-FEA9-4279-8AAF-4B71A6FB70BB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D4B866A0-FEA9-4279-8AAF-4B71A6FB70BB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D4B866A0-FEA9-4279-8AAF-4B71A6FB70BB}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A4ECD7AC-2007-4BDE-A8D9-E122CAE6EDAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A4ECD7AC-2007-4BDE-A8D9-E122CAE6EDAC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A4ECD7AC-2007-4BDE-A8D9-E122CAE6EDAC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A4ECD7AC-2007-4BDE-A8D9-E122CAE6EDAC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {66DE6E51-4668-4DBE-81A8-F6033C30F7CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {66DE6E51-4668-4DBE-81A8-F6033C30F7CF}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {66DE6E51-4668-4DBE-81A8-F6033C30F7CF}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {66DE6E51-4668-4DBE-81A8-F6033C30F7CF}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2BD23575-488B-44DB-8966-C45FDBF0E2EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2BD23575-488B-44DB-8966-C45FDBF0E2EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2BD23575-488B-44DB-8966-C45FDBF0E2EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2BD23575-488B-44DB-8966-C45FDBF0E2EF}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B279D429-8CE4-458E-A3CB-355C5E7502B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B279D429-8CE4-458E-A3CB-355C5E7502B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B279D429-8CE4-458E-A3CB-355C5E7502B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B279D429-8CE4-458E-A3CB-355C5E7502B8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
- {F72E7862-9B06-4AB3-81A1-AC8B447B50F1} = {896022B7-F488-412B-A917-331523E34B0A}
- {FC47A35E-7331-4AF1-B2E5-A7F02A005125} = {C54F4DED-9700-456C-AA78-4E69BD07353D}
+ {A4ECD7AC-2007-4BDE-A8D9-E122CAE6EDAC} = {3BF6E052-C932-4DD5-B5C6-3A014282CDF3}
+ {66DE6E51-4668-4DBE-81A8-F6033C30F7CF} = {3BF6E052-C932-4DD5-B5C6-3A014282CDF3}
+ {2BD23575-488B-44DB-8966-C45FDBF0E2EF} = {485AA823-29AD-4346-8857-331F81A3713C}
EndGlobalSection
EndGlobal
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
- ToolsVersion="4.0"
- DefaultTargets="Default">
-
- <PropertyGroup>
- <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
- <SolutionDir Condition="'$(SolutionDir)' == ''">$([System.IO.Path]::GetDirectoryName($(MSBuildProjectDirectory)))</SolutionDir>
- <ScriptsDir>$(SolutionDir)\build</ScriptsDir>
- <NugetExeDir>$(SolutionDir)\.nuget</NugetExeDir>
- <Solutionfile>$(SolutionDir)\SaasKit.sln</Solutionfile>
- <BuildArtifactsDir>$(SolutionDir)\artifacts</BuildArtifactsDir>
- <NuGetPackageOutputDir>$(BuildArtifactsDir)\packages</NuGetPackageOutputDir>
- </PropertyGroup>
-
- <ItemGroup>
- <AppProjFiles Include="$(SolutionDir)\src\**\*.csproj" />
- <TestProjFiles Include="$(SolutionDir)\tests\**\*.csproj" />
- <NuGetPackageProjects Include="$(SolutionDir)\src\SaasKit.Multitenancy\SaasKit.Multitenancy.csproj;$(SolutionDir)\src\SaasKit.Multitenancy.Mvc\SaasKit.Multitenancy.Mvc.csproj;$(SolutionDir)\src\SaasKit.Multitenancy.WebApi\SaasKit.Multitenancy.WebApi.csproj;" />
- </ItemGroup>
-
- <Target Name="Default" DependsOnTargets="Compile; Package" />
- <Target Name="DefaultCI" DependsOnTargets="Compile; Package; PublishPackage" />
-
- <Target Name="Clean">
- <RemoveDir Directories="$(BuildArtifactsDir)" />
- </Target>
-
- <Target Name="Init" DependsOnTargets="Clean">
- <MakeDir Directories="$(BuildArtifactsDir);$(NuGetPackageOutputDir)" />
- </Target>
-
- <Target Name="Compile" DependsOnTargets="Init">
- <MSBuild Projects="@(AppProjFiles)" Targets="Rebuild" Properties="OutDir=$(BuildArtifactsDir);Configuration=$(Configuration)" />
- <MSBuild Projects="@(TestProjFiles)" Targets="Rebuild" Properties="Configuration=Debug">
- <Output PropertyName="TestProjOutputs" TaskParameter="TargetOutputs" />
- </MSBuild>
- </Target>
-
- <Target Name="Tests" DependsOnTargets="Compile">
- <PropertyGroup>
- <NUnitAssemblies>$(TestProjOutputs.Replace(";", " "))</NUnitAssemblies>
- <NUnitCommand>$(SolutionDir)\packages\\NUnit.Runners.2.6.4\tools\nunit-console.exe $(NUnitAssemblies)</NUnitCommand>
- </PropertyGroup>
- <Message Importance="high" Text="Running Tests with this command: $(NUnitCommand)"/>
- <Exec Command="$(NUnitCommand)" />
- </Target>
-
- <Target Name="Package" DependsOnTargets="Tests">
- <Exec Command="$(NugetExeDir)\nuget.exe pack %(NuGetPackageProjects.FullPath) -Build -OutputDirectory $(NuGetPackageOutputDir) -IncludeReferencedProjects" />
- </Target>
-</Project>
Oops, something went wrong.

0 comments on commit 1542b2f

Please sign in to comment.