Permalink
Browse files

Merge pull request #19 from michaellwest/master

Updated Examples With Comments, Added NuGet References
  • Loading branch information...
2 parents 1080cc3 + 7b62782 commit 9503a88bb3bdc712218d2b72f84e471ac60b75ad @mythz mythz committed Sep 24, 2012
Showing with 14,725 additions and 5,805 deletions.
  1. BIN lib/ServiceStack.Common.dll
  2. BIN lib/ServiceStack.Interfaces.dll
  3. BIN lib/ServiceStack.OrmLite.SqlServer.dll
  4. BIN lib/ServiceStack.OrmLite.Sqlite.dll
  5. BIN lib/ServiceStack.OrmLite.dll
  6. BIN lib/ServiceStack.Razor.dll
  7. +0 −11 lib/ServiceStack.Razor.dll.config
  8. BIN lib/ServiceStack.RazorEngine.dll
  9. +0 −11 lib/ServiceStack.RazorEngine.dll.config
  10. BIN lib/ServiceStack.Redis.dll
  11. BIN lib/ServiceStack.ServiceInterface.dll
  12. BIN lib/ServiceStack.Text.dll
  13. BIN lib/ServiceStack.dll
  14. +24 −24 src/Backbone.Todos/Backbone.Todos.csproj
  15. +1 −1 src/Backbone.Todos/{ → Content/Css}/todos.css
  16. BIN src/Backbone.Todos/{ → Content/Images}/destroy.png
  17. +94 −64 src/Backbone.Todos/Global.asax.cs
  18. 0 src/Backbone.Todos/{js → Scripts}/backbone.js
  19. 0 src/Backbone.Todos/{js → Scripts}/jquery-1.5.js
  20. 0 src/Backbone.Todos/{ → Scripts}/todos.js
  21. 0 src/Backbone.Todos/{js → Scripts}/underscore-1.1.5.js
  22. +85 −85 src/Backbone.Todos/Web.config
  23. +52 −64 src/Backbone.Todos/default.htm
  24. +8 −0 src/Backbone.Todos/packages.config
  25. +1 −1 src/Docs/Docs.Logic/CustomMarkdownPage.cs
  26. +19 −10 src/Docs/Docs.Logic/Docs.Logic.csproj
  27. +8 −0 src/Docs/Docs.Logic/packages.config
  28. +17 −10 src/Docs/Docs.csproj
  29. +1 −1 src/Docs/framework/release-notes.md
  30. +138 −138 src/Docs/ormlite/ormlite-overview.md
  31. +8 −0 src/Docs/packages.config
  32. +50 −46 src/RedisStackOverflow/RedisStackOverflow.ServiceInterface/AnswersService.cs
  33. +391 −388 src/RedisStackOverflow/RedisStackOverflow.ServiceInterface/IRepository.cs
  34. +79 −94 src/RedisStackOverflow/RedisStackOverflow.ServiceInterface/QuestionService.cs
  35. +39 −38 src/RedisStackOverflow/RedisStackOverflow.ServiceInterface/QuestionStatService.cs
  36. +70 −76 src/RedisStackOverflow/RedisStackOverflow.ServiceInterface/QuestionsService.cs
  37. +18 −11 ...RedisStackOverflow/RedisStackOverflow.ServiceInterface/RedisStackOverflow.ServiceInterface.csproj
  38. +85 −71 src/RedisStackOverflow/RedisStackOverflow.ServiceInterface/ResetService.cs
  39. +50 −52 src/RedisStackOverflow/RedisStackOverflow.ServiceInterface/StatsService.cs
  40. +33 −28 src/RedisStackOverflow/RedisStackOverflow.ServiceInterface/UserService.cs
  41. +42 −42 src/RedisStackOverflow/RedisStackOverflow.ServiceInterface/UserStatsService.cs
  42. +51 −49 src/RedisStackOverflow/RedisStackOverflow.ServiceInterface/UserVotesService.cs
  43. +8 −0 src/RedisStackOverflow/RedisStackOverflow.ServiceInterface/packages.config
  44. +18 −19 src/RedisStackOverflow/RedisStackOverflow/{ → Content/Css}/default.css
  45. BIN src/RedisStackOverflow/RedisStackOverflow/{img → Content/Images}/Mono-powered-big.png
  46. BIN src/RedisStackOverflow/RedisStackOverflow/{img → Content/Images}/arrow-down.png
  47. BIN src/RedisStackOverflow/RedisStackOverflow/{img → Content/Images}/arrow-left.png
  48. BIN src/RedisStackOverflow/RedisStackOverflow/{img → Content/Images}/bg-body-1024.png
  49. BIN src/RedisStackOverflow/RedisStackOverflow/{img → Content/Images}/btn-github.png
  50. BIN src/RedisStackOverflow/RedisStackOverflow/{img → Content/Images}/delete_icon.png
  51. BIN src/RedisStackOverflow/RedisStackOverflow/{img → Content/Images}/myvote-down.png
  52. BIN src/RedisStackOverflow/RedisStackOverflow/{img → Content/Images}/myvote-up.png
  53. BIN src/RedisStackOverflow/RedisStackOverflow/{img → Content/Images}/vote-down.png
  54. BIN src/RedisStackOverflow/RedisStackOverflow/{img → Content/Images}/vote-up.png
  55. +32 −22 src/RedisStackOverflow/RedisStackOverflow/Global.asax.cs
  56. +30 −21 src/RedisStackOverflow/RedisStackOverflow/RedisStackOverflow.csproj
  57. +4 −4 src/RedisStackOverflow/RedisStackOverflow/default.htm
  58. +8 −0 src/RedisStackOverflow/RedisStackOverflow/packages.config
  59. +137 −126 src/RestFiles/RestFiles.ServiceInterface/FilesService.cs
  60. +20 −8 src/RestFiles/RestFiles.ServiceInterface/RestFiles.ServiceInterface.csproj
  61. +48 −54 src/RestFiles/RestFiles.ServiceInterface/RevertFilesService.cs
  62. +17 −17 src/RestFiles/RestFiles.ServiceInterface/Support/FileExtensions.cs
  63. +8 −0 src/RestFiles/RestFiles.ServiceInterface/packages.config
  64. +24 −26 src/RestFiles/RestFiles.ServiceModel/Operations/Files.cs
  65. +21 −14 src/RestFiles/RestFiles.ServiceModel/Operations/RevertFiles.cs
  66. +22 −4 src/RestFiles/RestFiles.ServiceModel/RestFiles.ServiceModel.csproj
  67. +6 −16 src/RestFiles/RestFiles.ServiceModel/Types/File.cs
  68. +7 −19 src/RestFiles/RestFiles.ServiceModel/Types/FileResult.cs
  69. +4 −10 src/RestFiles/RestFiles.ServiceModel/Types/Folder.cs
  70. +3 −7 src/RestFiles/RestFiles.ServiceModel/Types/FolderResult.cs
  71. +8 −0 src/RestFiles/RestFiles.ServiceModel/packages.config
  72. +182 −182 src/RestFiles/RestFiles/{css → Content/Css}/default.css
  73. BIN src/RestFiles/RestFiles/{img → Content/Images}/1x1black-50a.png
  74. BIN src/RestFiles/RestFiles/{img → Content/Images}/Chrome_logo.png
  75. BIN src/RestFiles/RestFiles/{img → Content/Images}/Mono-powered-big.png
  76. BIN src/RestFiles/RestFiles/{img → Content/Images}/Mozilla_logo.png
  77. BIN src/RestFiles/RestFiles/{img → Content/Images}/Opera_logo.png
  78. BIN src/RestFiles/RestFiles/{img → Content/Images}/Safari_logo.jpg
  79. BIN src/RestFiles/RestFiles/{img → Content/Images}/bg-body-1024.png
  80. BIN src/RestFiles/RestFiles/{img → Content/Images}/bg-footer.png
  81. BIN src/RestFiles/RestFiles/{img → Content/Images}/bg_gradient.gif
  82. BIN src/RestFiles/RestFiles/{img → Content/Images}/btn-github.png
  83. BIN src/RestFiles/RestFiles/{img → Content/Images}/close-icon.png
  84. BIN src/RestFiles/RestFiles/{img → Content/Images}/delete_icon.png
  85. BIN src/RestFiles/RestFiles/{img → Content/Images}/dir.png
  86. BIN src/RestFiles/RestFiles/{img → Content/Images}/file_head.gif
  87. BIN src/RestFiles/RestFiles/{img → Content/Images}/ie8_logo.jpg
  88. BIN src/RestFiles/RestFiles/{img → Content/Images}/logo-24x24.png
  89. BIN src/RestFiles/RestFiles/{img → Content/Images}/logo-32x32.png
  90. BIN src/RestFiles/RestFiles/{img → Content/Images}/logo-txt-small.png
  91. BIN src/RestFiles/RestFiles/{img → Content/Images}/public.png
  92. BIN src/RestFiles/RestFiles/{img → Content/Images}/rip-ie6-300.jpg
  93. BIN src/RestFiles/RestFiles/{img → Content/Images}/row_bg.png
  94. BIN src/RestFiles/RestFiles/{img → Content/Images}/txt.png
  95. +41 −39 src/RestFiles/RestFiles/Global.asax.cs
  96. +39 −30 src/RestFiles/RestFiles/RestFiles.csproj
  97. 0 src/RestFiles/RestFiles/{js → Scripts}/ajaxfileupload.js
  98. +92 −89 src/RestFiles/RestFiles/Web.config
  99. +305 −309 src/RestFiles/RestFiles/default.htm
  100. +0 −16 src/RestFiles/RestFiles/js/jquery-1.5.min.js
  101. +8 −0 src/RestFiles/RestFiles/packages.config
  102. +41 −35 src/RestIntro/RestIntro.ServiceInterface/CustomerService.cs
  103. +22 −6 src/RestIntro/RestIntro.ServiceInterface/RestIntro.ServiceInterface.csproj
  104. +9 −0 src/RestIntro/RestIntro.ServiceInterface/packages.config
  105. +14 −10 src/RestIntro/RestIntro.ServiceModel/Customer.cs
  106. +33 −2 src/RestIntro/RestIntro.ServiceModel/RestIntro.ServiceModel.csproj
  107. +9 −0 src/RestIntro/RestIntro.ServiceModel/packages.config
  108. +31 −21 src/RestIntro/RestIntro/Global.asax.cs
  109. +18 −9 src/RestIntro/RestIntro/RestIntro.csproj
  110. +9 −0 src/RestIntro/RestIntro/packages.config
  111. +18 −8 src/ServiceStack.Examples/ServiceStack.Examples.Clients/ServiceStack.Examples.Clients.csproj
  112. +8 −0 src/ServiceStack.Examples/ServiceStack.Examples.Clients/packages.config
  113. +20 −7 ...erviceStack.Examples/ServiceStack.Examples.Host.Console/ServiceStack.Examples.Host.Console.csproj
  114. +9 −0 src/ServiceStack.Examples/ServiceStack.Examples.Host.Console/packages.config
  115. +37 −42 src/ServiceStack.Examples/ServiceStack.Examples.Host.Web/AppHost.cs
  116. +23 −12 src/ServiceStack.Examples/ServiceStack.Examples.Host.Web/ServiceStack.Examples.Host.Web.csproj
  117. +74 −74 src/ServiceStack.Examples/ServiceStack.Examples.Host.Web/Web.config
  118. +9 −0 src/ServiceStack.Examples/ServiceStack.Examples.Host.Web/packages.config
  119. +19 −20 src/ServiceStack.Examples/ServiceStack.Examples.ServiceInterface/DeleteAllUsersService.cs
  120. +13 −15 src/ServiceStack.Examples/ServiceStack.Examples.ServiceInterface/GetAllUsersService.cs
  121. +28 −29 src/ServiceStack.Examples/ServiceStack.Examples.ServiceInterface/GetUsersService.cs
  122. +94 −98 src/ServiceStack.Examples/ServiceStack.Examples.ServiceInterface/MovieRestService.cs
  123. +16 −17 src/ServiceStack.Examples/ServiceStack.Examples.ServiceInterface/ResetMovieDatabaseService.cs
  124. +15 −6 ...ack.Examples/ServiceStack.Examples.ServiceInterface/ServiceStack.Examples.ServiceInterface.csproj
  125. +17 −18 src/ServiceStack.Examples/ServiceStack.Examples.ServiceInterface/StoreLogsService.cs
  126. +42 −43 src/ServiceStack.Examples/ServiceStack.Examples.ServiceInterface/StoreNewUserService.cs
  127. +28 −29 src/ServiceStack.Examples/ServiceStack.Examples.ServiceInterface/Support/ConfigureDatabase.cs
  128. +8 −0 src/ServiceStack.Examples/ServiceStack.Examples.ServiceInterface/packages.config
  129. +19 −24 src/ServiceStack.Examples/ServiceStack.Examples.ServiceModel/Operations/GetAllUsers.cs
  130. +20 −8 ...erviceStack.Examples/ServiceStack.Examples.ServiceModel/ServiceStack.Examples.ServiceModel.csproj
  131. +56 −71 src/ServiceStack.Examples/ServiceStack.Examples.ServiceModel/Types/Logger.cs
  132. +7 −24 src/ServiceStack.Examples/ServiceStack.Examples.ServiceModel/Types/Movie.cs
  133. +224 −275 src/ServiceStack.Examples/ServiceStack.Examples.ServiceModel/Types/NorthwindDtos.cs
  134. +5 −14 src/ServiceStack.Examples/ServiceStack.Examples.ServiceModel/Types/User.cs
  135. +8 −0 src/ServiceStack.Examples/ServiceStack.Examples.ServiceModel/packages.config
  136. +159 −0 src/ServiceStack.Hello/Content/Css/default.css
  137. BIN src/ServiceStack.Hello/{img → Content/Images}/MetadataIndex.png
  138. BIN src/ServiceStack.Hello/{img → Content/Images}/Mono-powered-big.png
  139. BIN src/ServiceStack.Hello/{img → Content/Images}/NewProject.png
  140. BIN src/ServiceStack.Hello/{img → Content/Images}/bg-body-1024.png
  141. BIN src/ServiceStack.Hello/{img → Content/Images}/btn-github.png
  142. +57 −45 src/ServiceStack.Hello/Global.asax.cs
  143. +23 −12 src/ServiceStack.Hello/ServiceStack.Hello.csproj
  144. +2 −3 src/ServiceStack.Hello/ServiceStack.Hello.csproj.user
  145. +28 −40 src/ServiceStack.Hello/Web.config
  146. +442 −545 src/ServiceStack.Hello/default.htm
  147. +8 −0 src/ServiceStack.Hello/packages.config
  148. +20 −20 src/ServiceStack.MovieRest/{ → Content/Css}/default.css
  149. BIN src/ServiceStack.MovieRest/{img → Content/Images}/bg-body-1024.png
  150. BIN src/ServiceStack.MovieRest/{img → Content/Images}/btn-github.png
  151. +54 −45 src/ServiceStack.MovieRest/Global.asax.cs
  152. +174 −137 src/ServiceStack.MovieRest/MovieService.cs
  153. +33 −9 src/ServiceStack.MovieRest/ResetMovies.cs
  154. +2 −0 src/ServiceStack.MovieRest/Scripts/jquery-1.8.1.min.js
  155. +24 −15 src/ServiceStack.MovieRest/ServiceStack.MovieRest.csproj
  156. +113 −136 src/ServiceStack.MovieRest/default.htm
  157. +0 −4 src/ServiceStack.MovieRest/jquery-1.7.1.min.js
  158. +10 −0 src/ServiceStack.MovieRest/packages.config
  159. +61 −39 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceInterface/CachedServices.cs
  160. +24 −18 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceInterface/CustomerDetailsService.cs
  161. +14 −9 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceInterface/CustomersService.cs
  162. +38 −34 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceInterface/OrdersService.cs
  163. +28 −12 ....Northwind/ServiceStack.Northwind.ServiceInterface/ServiceStack.Northwind.ServiceInterface.csproj
  164. +50 −50 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceInterface/VCardFormat.cs
  165. +9 −0 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceInterface/packages.config
  166. +18 −26 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Operations/CachedOperations.cs
  167. +19 −28 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Operations/CustomerDetails.cs
  168. +15 −21 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Operations/Customers.cs
  169. +18 −19 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Operations/Orders.cs
  170. +30 −2 ...iceStack.Northwind/ServiceStack.Northwind.ServiceModel/ServiceStack.Northwind.ServiceModel.csproj
  171. +3 −7 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Types/Category.cs
  172. +19 −41 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Types/Customer.cs
  173. +3 −6 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Types/CustomerCustomerDemo.cs
  174. +3 −6 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Types/CustomerDemographic.cs
  175. +11 −15 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Types/CustomerOrders.cs
  176. +18 −37 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Types/Employee.cs
  177. +3 −6 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Types/EmployeeTerritory.cs
  178. +15 −30 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Types/Order.cs
  179. +6 −17 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Types/OrderDetail.cs
  180. +11 −22 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Types/Product.cs
  181. +3 −6 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Types/Region.cs
  182. +4 −8 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Types/Shipper.cs
  183. +12 −25 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Types/Supplier.cs
  184. +4 −8 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/Types/Territory.cs
  185. +9 −0 src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceModel/packages.config
  186. +135 −0 src/ServiceStack.Northwind/ServiceStack.Northwind/Content/Css/default.css
  187. +151 −0 src/ServiceStack.Northwind/ServiceStack.Northwind/Content/Css/vcard-format.css
  188. BIN src/ServiceStack.Northwind/ServiceStack.Northwind/{img → Content/Images}/Mono-powered-big.png
  189. BIN src/ServiceStack.Northwind/ServiceStack.Northwind/{img → Content/Images}/bg-body-1024.png
  190. BIN src/ServiceStack.Northwind/ServiceStack.Northwind/{img → Content/Images}/bg-footer.png
  191. BIN src/ServiceStack.Northwind/ServiceStack.Northwind/{img → Content/Images}/btn-github.png
  192. BIN src/ServiceStack.Northwind/ServiceStack.Northwind/{img → Content/Images}/database-18x18.jpg
  193. BIN src/ServiceStack.Northwind/ServiceStack.Northwind/{img → Content/Images}/database-icon.jpg
  194. BIN src/ServiceStack.Northwind/ServiceStack.Northwind/{img → Content/Images}/logo-txt-small.png
  195. BIN src/ServiceStack.Northwind/ServiceStack.Northwind/{img → Content/Images}/vcard-ALFKI-200.png
  196. BIN src/ServiceStack.Northwind/ServiceStack.Northwind/{img → Content/Images}/vcard-ALFKI-300.png
  197. BIN src/ServiceStack.Northwind/ServiceStack.Northwind/{img → Content/Images}/vcard-ALFKI.png
  198. +34 −24 src/ServiceStack.Northwind/ServiceStack.Northwind/Global.asax.cs
  199. +28 −16 src/ServiceStack.Northwind/ServiceStack.Northwind/ServiceStack.Northwind.csproj
  200. +88 −85 src/ServiceStack.Northwind/ServiceStack.Northwind/Web.config
  201. +312 −307 src/ServiceStack.Northwind/ServiceStack.Northwind/default.htm
  202. +9 −0 src/ServiceStack.Northwind/ServiceStack.Northwind/packages.config
  203. +121 −281 src/ServiceStack.Northwind/ServiceStack.Northwind/vcard-format.htm
  204. +20 −8 src/StarterTemplates/ApiPath35/ApiPath35.csproj
  205. +27 −17 src/StarterTemplates/ApiPath35/Global.asax.cs
  206. +8 −0 src/StarterTemplates/ApiPath35/packages.config
  207. +19 −9 src/StarterTemplates/ConsoleAppHost/ConsoleAppHost.csproj
  208. +41 −33 src/StarterTemplates/ConsoleAppHost/Program.cs
  209. +8 −0 src/StarterTemplates/ConsoleAppHost/packages.config
  210. +21 −8 src/StarterTemplates/CustomPath35/CustomPath35.csproj
  211. +27 −17 src/StarterTemplates/CustomPath35/Global.asax.cs
  212. +8 −0 src/StarterTemplates/CustomPath35/packages.config
  213. +21 −7 src/StarterTemplates/CustomPath40/CustomPath40.csproj
  214. +27 −17 src/StarterTemplates/CustomPath40/Global.asax.cs
  215. +35 −31 src/StarterTemplates/CustomPath40/Web.config
  216. +8 −0 src/StarterTemplates/CustomPath40/packages.config
  217. +26 −17 src/StarterTemplates/RootPath35/Global.asax.cs
  218. +21 −8 src/StarterTemplates/RootPath35/RootPath35.csproj
  219. +8 −0 src/StarterTemplates/RootPath35/packages.config
  220. +27 −17 src/StarterTemplates/RootPath40/Global.asax.cs
  221. +21 −7 src/StarterTemplates/RootPath40/RootPath40.csproj
  222. +22 −17 src/StarterTemplates/RootPath40/Web.config
  223. +8 −0 src/StarterTemplates/RootPath40/packages.config
  224. +28 −25 src/StarterTemplates/StarterTemplates.Common/HelloService.cs
  225. +19 −10 src/StarterTemplates/StarterTemplates.Common/StarterTemplates.Common.csproj
  226. +2 −3 src/StarterTemplates/StarterTemplates.Common/TodoService.cs
  227. +8 −0 src/StarterTemplates/StarterTemplates.Common/packages.config
  228. +20 −4 src/StarterTemplates/WinServiceAppHost/WinServiceAppHost.csproj
  229. +8 −0 src/StarterTemplates/WinServiceAppHost/packages.config
  230. BIN src/packages/ServiceStack.3.9.11/ServiceStack.3.9.11.nupkg
  231. BIN src/packages/ServiceStack.3.9.11/lib/net35/ServiceStack.ServiceInterface.dll
  232. BIN src/packages/ServiceStack.3.9.11/lib/net35/ServiceStack.dll
  233. +72 −5 lib/ServiceStack.XML → src/packages/ServiceStack.3.9.11/lib/net35/ServiceStack.xml
  234. BIN src/packages/ServiceStack.3.9.11/lib/net40/ServiceStack.ServiceInterface.dll
  235. BIN src/packages/ServiceStack.3.9.11/lib/net40/ServiceStack.dll
  236. +3,250 −0 src/packages/ServiceStack.3.9.11/lib/net40/ServiceStack.xml
  237. BIN src/packages/ServiceStack.Common.3.9.11/ServiceStack.Common.3.9.11.nupkg
  238. BIN src/packages/ServiceStack.Common.3.9.11/lib/net35/ServiceStack.Common.dll
  239. 0 {lib → src/packages/ServiceStack.Common.3.9.11/lib/net35}/ServiceStack.Common.xml
  240. BIN src/packages/ServiceStack.Common.3.9.11/lib/net35/ServiceStack.Interfaces.dll
  241. +50 −65 {lib → src/packages/ServiceStack.Common.3.9.11/lib/net35}/ServiceStack.Interfaces.xml
  242. +3 −0 src/packages/ServiceStack.Common.3.9.11/lib/sl4/README.txt
  243. BIN src/packages/ServiceStack.Common.3.9.11/lib/sl4/ServiceStack.Common.dll
  244. +475 −0 src/packages/ServiceStack.Common.3.9.11/lib/sl4/ServiceStack.Common.xml
  245. BIN src/packages/ServiceStack.Common.3.9.11/lib/sl4/ServiceStack.Interfaces.dll
  246. +1,343 −0 src/packages/ServiceStack.Common.3.9.11/lib/sl4/ServiceStack.Interfaces.xml
  247. +3 −0 src/packages/ServiceStack.Common.3.9.11/lib/sl5/README.txt
  248. BIN src/packages/ServiceStack.Common.3.9.11/lib/sl5/ServiceStack.Common.dll
  249. +475 −0 src/packages/ServiceStack.Common.3.9.11/lib/sl5/ServiceStack.Common.xml
  250. BIN src/packages/ServiceStack.Common.3.9.11/lib/sl5/ServiceStack.Interfaces.dll
  251. +1,343 −0 src/packages/ServiceStack.Common.3.9.11/lib/sl5/ServiceStack.Interfaces.xml
  252. BIN src/packages/ServiceStack.OrmLite.SqlServer.3.9.9/ServiceStack.OrmLite.SqlServer.3.9.9.nupkg
  253. BIN src/packages/ServiceStack.OrmLite.SqlServer.3.9.9/lib/ServiceStack.OrmLite.SqlServer.dll
  254. BIN src/packages/ServiceStack.OrmLite.SqlServer.3.9.9/lib/ServiceStack.OrmLite.dll
  255. BIN src/packages/ServiceStack.OrmLite.Sqlite32.3.9.9/ServiceStack.OrmLite.Sqlite32.3.9.9.nupkg
  256. BIN src/packages/ServiceStack.OrmLite.Sqlite32.3.9.9/lib/net35/ServiceStack.OrmLite.SqliteNET.dll
  257. BIN src/packages/ServiceStack.OrmLite.Sqlite32.3.9.9/lib/net35/ServiceStack.OrmLite.dll
  258. BIN src/packages/ServiceStack.OrmLite.Sqlite32.3.9.9/lib/net35/System.Data.SQLite.dll
  259. BIN src/packages/ServiceStack.OrmLite.Sqlite32.3.9.9/lib/net40/ServiceStack.OrmLite.SqliteNET.dll
  260. BIN src/packages/ServiceStack.OrmLite.Sqlite32.3.9.9/lib/net40/ServiceStack.OrmLite.dll
  261. BIN src/packages/ServiceStack.OrmLite.Sqlite32.3.9.9/lib/net40/System.Data.SQLite.dll
  262. BIN src/packages/ServiceStack.Redis.3.9.11/ServiceStack.Redis.3.9.11.nupkg
  263. +43 −0 {lib → src/packages/ServiceStack.Redis.3.9.11/lib/net35}/ServiceStack.Redis.XML
  264. BIN src/packages/ServiceStack.Redis.3.9.11/lib/net35/ServiceStack.Redis.dll
  265. BIN src/packages/ServiceStack.Text.3.9.11/ServiceStack.Text.3.9.11.nupkg
  266. BIN src/packages/ServiceStack.Text.3.9.11/lib/ServiceStack.Text-v3.67.zip
  267. +35 −0 {lib → src/packages/ServiceStack.Text.3.9.11/lib/net35}/ServiceStack.Text.XML
  268. BIN src/packages/ServiceStack.Text.3.9.11/lib/net35/ServiceStack.Text.dll
  269. +409 −0 src/packages/ServiceStack.Text.3.9.11/lib/sl4-windowsphone71/ServiceStack.Text.WP.XML
  270. BIN src/packages/ServiceStack.Text.3.9.11/lib/sl4-windowsphone71/ServiceStack.Text.WP.dll
  271. BIN src/packages/ServiceStack.Text.3.9.11/lib/sl4/ServiceStack.Text.dll
  272. +385 −0 src/packages/ServiceStack.Text.3.9.11/lib/sl4/ServiceStack.Text.xml
  273. BIN src/packages/ServiceStack.Text.3.9.11/lib/sl5/ServiceStack.Text.dll
  274. +385 −0 src/packages/ServiceStack.Text.3.9.11/lib/sl5/ServiceStack.Text.xml
  275. +32 −0 src/packages/repositories.config
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
@@ -1,11 +0,0 @@
-<?xml version="1.0"?>
-<configuration>
- <runtime>
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <dependentAssembly>
- <assemblyIdentity name="System.Web" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
- <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
- </dependentAssembly>
- </assemblyBinding>
- </runtime>
-</configuration>
Binary file not shown.
@@ -1,11 +0,0 @@
-<?xml version="1.0"?>
-<configuration>
- <runtime>
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <dependentAssembly>
- <assemblyIdentity name="System.Web" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
- <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
- </dependentAssembly>
- </assemblyBinding>
- </runtime>
-</configuration>
View
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
@@ -32,28 +32,26 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
- <Reference Include="ServiceStack, Version=2.0.7.20458, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\ServiceStack.dll</HintPath>
+ <Reference Include="ServiceStack, Version=3.9.11.0, Culture=neutral, processorArchitecture=MSIL">
+ <HintPath>..\packages\ServiceStack.3.9.11\lib\net35\ServiceStack.dll</HintPath>
</Reference>
- <Reference Include="ServiceStack.Common, Version=1.0.4095.20455, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\ServiceStack.Common.dll</HintPath>
+ <Reference Include="ServiceStack.Common, Version=3.9.9.0, Culture=neutral, processorArchitecture=MSIL">
+ <HintPath>..\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Common.dll</HintPath>
</Reference>
- <Reference Include="ServiceStack.Interfaces, Version=1.0.4095.20451, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\ServiceStack.Interfaces.dll</HintPath>
+ <Reference Include="ServiceStack.Interfaces, Version=3.9.9.0, Culture=neutral, processorArchitecture=MSIL">
+ <HintPath>..\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll</HintPath>
</Reference>
- <Reference Include="ServiceStack.Redis, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\ServiceStack.Redis.dll</HintPath>
+ <Reference Include="ServiceStack.OrmLite.SqlServer">
+ <HintPath>..\packages\ServiceStack.OrmLite.SqlServer.3.9.9\lib\ServiceStack.OrmLite.SqlServer.dll</HintPath>
</Reference>
- <Reference Include="ServiceStack.ServiceInterface, Version=1.0.4080.41519, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\ServiceStack.ServiceInterface.dll</HintPath>
+ <Reference Include="ServiceStack.Redis, Version=3.9.11.0, Culture=neutral, processorArchitecture=MSIL">
+ <HintPath>..\packages\ServiceStack.Redis.3.9.11\lib\net35\ServiceStack.Redis.dll</HintPath>
</Reference>
- <Reference Include="ServiceStack.Text">
- <HintPath>..\..\lib\ServiceStack.Text.dll</HintPath>
+ <Reference Include="ServiceStack.ServiceInterface, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <HintPath>..\packages\ServiceStack.3.9.11\lib\net35\ServiceStack.ServiceInterface.dll</HintPath>
+ </Reference>
+ <Reference Include="ServiceStack.Text, Version=3.9.11.0, Culture=neutral, processorArchitecture=MSIL">
+ <HintPath>..\packages\ServiceStack.Text.3.9.11\lib\net35\ServiceStack.Text.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
@@ -62,7 +60,7 @@
</ItemGroup>
<ItemGroup>
<Content Include="default.htm" />
- <Content Include="destroy.png" />
+ <Content Include="Content\Images\destroy.png" />
<Content Include="docs\backbone-localstorage.html" />
<Content Include="docs\backbone.html" />
<Content Include="docs\docco.css" />
@@ -80,11 +78,11 @@
<Content Include="docs\images\tzigla.png" />
<Content Include="docs\todos.html" />
<Content Include="Global.asax" />
- <Content Include="js\backbone.js" />
- <Content Include="js\jquery-1.5.js" />
- <Content Include="js\underscore-1.1.5.js" />
- <Content Include="todos.css" />
- <Content Include="todos.js" />
+ <Content Include="Scripts\backbone.js" />
+ <Content Include="Scripts\jquery-1.5.js" />
+ <Content Include="Scripts\underscore-1.1.5.js" />
+ <Content Include="Content\Css\todos.css" />
+ <Content Include="Scripts\todos.js" />
<Content Include="Web.config" />
</ItemGroup>
<ItemGroup>
@@ -93,7 +91,9 @@
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
- <ItemGroup />
+ <ItemGroup>
+ <Content Include="packages.config" />
+ </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<ProjectExtensions>
@@ -147,7 +147,7 @@ html {
cursor: pointer;
width: 20px;
height: 20px;
- background: url(destroy.png) no-repeat 0 0;
+ background: url(../Images/destroy.png) no-repeat 0 0;
}
#todo-list li:hover .todo-destroy {
display: block;
@@ -2,83 +2,113 @@
using ServiceStack.Redis;
using ServiceStack.ServiceInterface;
using ServiceStack.WebHost.Endpoints;
+using Funq;
+using ServiceStack.Text;
//The entire C# source code for the ServiceStack + Redis TODO REST backend. There is no other .cs :)
namespace Backbone.Todos
{
- //REST Resource DTO
- public class Todo
- {
- public long Id { get; set; }
- public string Content { get; set; }
- public int Order { get; set; }
- public bool Done { get; set; }
- }
+ /// <summary>
+ /// Define your ServiceStack web service request (i.e. Request DTO).
+ /// </summary>
+ public class Todo
+ {
+ public long Id { get; set; }
+ public string Content { get; set; }
+ public int Order { get; set; }
+ public bool Done { get; set; }
+ }
- //Todo REST Service implementation
- public class TodoService : RestServiceBase<Todo>
- {
- public IRedisClientsManager RedisManager { get; set; } //Injected by IOC
+ /// <summary>
+ /// Create your ServiceStack rest-ful web service implementation.
+ /// </summary>
+ public class TodoService : RestServiceBase<Todo>
+ {
+ /// <summary>
+ /// Gets or sets the Redis Manager. The built-in IoC used with ServiceStack autowires this property.
+ /// </summary>
+ public IRedisClientsManager RedisManager { get; set; }
- public override object OnGet(Todo request)
- {
- //return single todo
- if (request.Id != default(long))
- return RedisManager.ExecAs<Todo>(r => r.GetById(request.Id));
+ public override object OnGet(Todo todo)
+ {
+ //Return a single Todo if the id is provided.
+ if (todo.Id != default(long))
+ {
+ return RedisManager.ExecAs<Todo>(r => r.GetById(todo.Id));
+ }
- //return all todos
- return RedisManager.ExecAs<Todo>(r => r.GetAll());
- }
+ //Return all Todos items.
+ return RedisManager.ExecAs<Todo>(r => r.GetAll());
+ }
- //Handles creaing a new and updating existing todo
- public override object OnPost(Todo todo)
- {
- RedisManager.ExecAs<Todo>(r => {
- //Get next id for new todo
- if (todo.Id == default(long)) todo.Id = r.GetNextSequence();
- r.Store(todo);
- });
- return todo;
- }
+ /// <summary>
+ /// Handles creating and updating the Todo items.
+ /// </summary>
+ /// <param name="todo">The todo.</param>
+ /// <returns></returns>
+ public override object OnPost(Todo todo)
+ {
+ RedisManager.ExecAs<Todo>(r =>
+ {
+ //Get next id for new todo
+ if (todo.Id == default(long)) todo.Id = r.GetNextSequence();
+ r.Store(todo);
+ });
+ return todo;
+ }
- public override object OnPut(Todo request)
- {
- return OnPost(request);
- }
+ /// <summary>
+ /// Handles creating and updating the Todo items.
+ /// </summary>
+ /// <param name="todo">The todo.</param>
+ /// <returns></returns>
+ public override object OnPut(Todo todo)
+ {
+ return OnPost(todo);
+ }
- public override object OnDelete(Todo request)
- {
- RedisManager.ExecAs<Todo>(r => r.DeleteById(request.Id));
- return null;
- }
- }
+ public override object OnDelete(Todo todo)
+ {
+ RedisManager.ExecAs<Todo>(r => r.DeleteById(todo.Id));
+ return null;
+ }
+ }
- //Configure ServiceStack.NET web service host
- public class AppHost : AppHostBase
- {
- //Tell ServiceStack the name and where to find your web services
- public AppHost() : base("Backbone.js TODO", typeof(TodoService).Assembly) { }
+ /// <summary>
+ /// Create your ServiceStack web service application with a singleton AppHost.
+ /// </summary>
+ public class ToDoAppHost : AppHostBase
+ {
+ /// <summary>
+ /// Initializes a new instance of your ServiceStack application, with the specified name and assembly containing the services.
+ /// </summary>
+ public ToDoAppHost() : base("Backbone.js TODO", typeof(TodoService).Assembly) { }
- public override void Configure(Funq.Container container)
- {
- //Set JSON web services to return idiomatic JSON camelCase properties
- ServiceStack.Text.JsConfig.EmitCamelCaseNames = true;
+ /// <summary>
+ /// Configure the container with the necessary routes for your ServiceStack application.
+ /// </summary>
+ /// <param name="container">The built-in IoC used with ServiceStack.</param>
+ public override void Configure(Container container)
+ {
+ //Configure ServiceStack Json web services to return idiomatic Json camelCase properties.
+ JsConfig.EmitCamelCaseNames = true;
- //Register Redis factory in Funq IOC
- container.Register<IRedisClientsManager>(new BasicRedisClientManager("localhost:6379"));
+ //Register Redis factory in Funq IoC. The default port for Redis is 6379.
+ container.Register<IRedisClientsManager>(new BasicRedisClientManager("localhost:6379"));
- //Register user-defined REST Paths
- Routes
- .Add<Todo>("/todos")
- .Add<Todo>("/todos/{Id}");
- }
- }
+ //Register user-defined REST Paths
+ Routes
+ .Add<Todo>("/todos")
+ .Add<Todo>("/todos/{Id}");
+ }
+ }
- public class Global : System.Web.HttpApplication
- {
- protected void Application_Start(object sender, EventArgs e)
- {
- new AppHost().Init(); //Start ServiceStack App
- }
- }
+ public class Global : System.Web.HttpApplication
+ {
+ protected void Application_Start(object sender, EventArgs e)
+ {
+ //Initialize your application
+ (new ToDoAppHost()).Init();
+ }
+ }
}
File renamed without changes.
Oops, something went wrong.

0 comments on commit 9503a88

Please sign in to comment.