Permalink
Browse files

Updated Docs to latest API + NuGets

  • Loading branch information...
1 parent fe0d80c commit b99e848adae7151541bec34d4192f25d785be90b @mythz mythz committed Dec 14, 2012
Showing with 13,345 additions and 202 deletions.
  1. +2 −2 src/Docs/Docs.Logic/CategoryService.cs
  2. +0 −1 src/Docs/Docs.Logic/CustomMarkdownPage.cs
  3. +15 −12 src/Docs/Docs.Logic/Docs.Logic.csproj
  4. +1 −2 src/Docs/Docs.Logic/PageManager.cs
  5. +2 −2 src/Docs/Docs.Logic/PageService.cs
  6. +2 −2 src/Docs/Docs.Logic/SearchService.cs
  7. +5 −0 src/Docs/Docs.Logic/packages.config
  8. +184 −181 src/Docs/Docs.csproj
  9. +5 −0 src/Docs/packages.config
  10. BIN src/Docs/packages/ServiceStack.3.9.32/ServiceStack.3.9.32.nupkg
  11. +27 −0 src/Docs/packages/ServiceStack.3.9.32/ServiceStack.3.9.32.nuspec
  12. BIN src/Docs/packages/ServiceStack.3.9.32/lib/net35/ServiceStack.ServiceInterface.dll
  13. BIN src/Docs/packages/ServiceStack.3.9.32/lib/net35/ServiceStack.dll
  14. +3,483 −0 src/Docs/packages/ServiceStack.3.9.32/lib/net35/ServiceStack.xml
  15. BIN src/Docs/packages/ServiceStack.Common.3.9.32/ServiceStack.Common.3.9.32.nupkg
  16. +28 −0 src/Docs/packages/ServiceStack.Common.3.9.32/ServiceStack.Common.3.9.32.nuspec
  17. BIN src/Docs/packages/ServiceStack.Common.3.9.32/lib/net35/ServiceStack.Common.dll
  18. +927 −0 src/Docs/packages/ServiceStack.Common.3.9.32/lib/net35/ServiceStack.Common.xml
  19. BIN src/Docs/packages/ServiceStack.Common.3.9.32/lib/net35/ServiceStack.Interfaces.dll
  20. +1,698 −0 src/Docs/packages/ServiceStack.Common.3.9.32/lib/net35/ServiceStack.Interfaces.xml
  21. +3 −0 src/Docs/packages/ServiceStack.Common.3.9.32/lib/sl4/README.txt
  22. BIN src/Docs/packages/ServiceStack.Common.3.9.32/lib/sl4/ServiceStack.Common.dll
  23. +475 −0 src/Docs/packages/ServiceStack.Common.3.9.32/lib/sl4/ServiceStack.Common.xml
  24. BIN src/Docs/packages/ServiceStack.Common.3.9.32/lib/sl4/ServiceStack.Interfaces.dll
  25. +1,343 −0 src/Docs/packages/ServiceStack.Common.3.9.32/lib/sl4/ServiceStack.Interfaces.xml
  26. +3 −0 src/Docs/packages/ServiceStack.Common.3.9.32/lib/sl5/README.txt
  27. BIN src/Docs/packages/ServiceStack.Common.3.9.32/lib/sl5/ServiceStack.Common.dll
  28. +475 −0 src/Docs/packages/ServiceStack.Common.3.9.32/lib/sl5/ServiceStack.Common.xml
  29. BIN src/Docs/packages/ServiceStack.Common.3.9.32/lib/sl5/ServiceStack.Interfaces.dll
  30. +1,343 −0 src/Docs/packages/ServiceStack.Common.3.9.32/lib/sl5/ServiceStack.Interfaces.xml
  31. BIN src/Docs/packages/ServiceStack.OrmLite.SqlServer.3.9.32/ServiceStack.OrmLite.SqlServer.3.9.32.nupkg
  32. +22 −0 src/Docs/packages/ServiceStack.OrmLite.SqlServer.3.9.32/ServiceStack.OrmLite.SqlServer.3.9.32.nuspec
  33. BIN src/Docs/packages/ServiceStack.OrmLite.SqlServer.3.9.32/lib/ServiceStack.OrmLite.SqlServer.dll
  34. BIN src/Docs/packages/ServiceStack.OrmLite.SqlServer.3.9.32/lib/ServiceStack.OrmLite.dll
  35. BIN src/Docs/packages/ServiceStack.Redis.3.9.32/ServiceStack.Redis.3.9.32.nupkg
  36. +22 −0 src/Docs/packages/ServiceStack.Redis.3.9.32/ServiceStack.Redis.3.9.32.nuspec
  37. +1,478 −0 src/Docs/packages/ServiceStack.Redis.3.9.32/lib/net35/ServiceStack.Redis.XML
  38. BIN src/Docs/packages/ServiceStack.Redis.3.9.32/lib/net35/ServiceStack.Redis.dll
  39. BIN src/Docs/packages/ServiceStack.Text.3.9.32/ServiceStack.Text.3.9.32.nupkg
  40. +23 −0 src/Docs/packages/ServiceStack.Text.3.9.32/ServiceStack.Text.3.9.32.nuspec
  41. +595 −0 src/Docs/packages/ServiceStack.Text.3.9.32/lib/net35/ServiceStack.Text.XML
  42. BIN src/Docs/packages/ServiceStack.Text.3.9.32/lib/net35/ServiceStack.Text.dll
  43. +409 −0 src/Docs/packages/ServiceStack.Text.3.9.32/lib/sl4-windowsphone71/ServiceStack.Text.WP.XML
  44. BIN src/Docs/packages/ServiceStack.Text.3.9.32/lib/sl4-windowsphone71/ServiceStack.Text.WP.dll
  45. BIN src/Docs/packages/ServiceStack.Text.3.9.32/lib/sl4/ServiceStack.Text.dll
  46. +385 −0 src/Docs/packages/ServiceStack.Text.3.9.32/lib/sl4/ServiceStack.Text.xml
  47. BIN src/Docs/packages/ServiceStack.Text.3.9.32/lib/sl5/ServiceStack.Text.dll
  48. +385 −0 src/Docs/packages/ServiceStack.Text.3.9.32/lib/sl5/ServiceStack.Text.xml
  49. +5 −0 src/Docs/packages/repositories.config
@@ -16,11 +16,11 @@ public class CategoryResponse
public List<Page> Results { get; set; }
}
- public class CategoryService : RestServiceBase<Category>
+ public class CategoryService : Service
{
public PageManager PageManager { get; set; }
- public override object OnGet(Category request)
+ public object Get(Category request)
{
List<Page> pages = null;
if (!request.Name.IsNullOrEmpty())
@@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
-using System.Text.RegularExpressions;
using ServiceStack.Markdown;
namespace Docs.Logic
@@ -31,26 +31,29 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
- <Reference Include="ServiceStack, Version=3.9.11.0, Culture=neutral, processorArchitecture=MSIL">
- <HintPath>..\..\packages\ServiceStack.3.9.11\lib\net35\ServiceStack.dll</HintPath>
+ <Reference Include="ServiceStack">
+ <HintPath>..\packages\ServiceStack.3.9.32\lib\net35\ServiceStack.dll</HintPath>
</Reference>
- <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 Include="ServiceStack.Common">
+ <HintPath>..\packages\ServiceStack.Common.3.9.32\lib\net35\ServiceStack.Common.dll</HintPath>
</Reference>
- <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 Include="ServiceStack.Interfaces">
+ <HintPath>..\packages\ServiceStack.Common.3.9.32\lib\net35\ServiceStack.Interfaces.dll</HintPath>
+ </Reference>
+ <Reference Include="ServiceStack.OrmLite">
+ <HintPath>..\packages\ServiceStack.OrmLite.SqlServer.3.9.32\lib\ServiceStack.OrmLite.dll</HintPath>
</Reference>
<Reference Include="ServiceStack.OrmLite.SqlServer">
- <HintPath>..\..\packages\ServiceStack.OrmLite.SqlServer.3.9.9\lib\ServiceStack.OrmLite.SqlServer.dll</HintPath>
+ <HintPath>..\packages\ServiceStack.OrmLite.SqlServer.3.9.32\lib\ServiceStack.OrmLite.SqlServer.dll</HintPath>
</Reference>
<Reference Include="ServiceStack.Redis">
- <HintPath>..\..\packages\ServiceStack.Redis.3.9.11\lib\net35\ServiceStack.Redis.dll</HintPath>
+ <HintPath>..\packages\ServiceStack.Redis.3.9.32\lib\net35\ServiceStack.Redis.dll</HintPath>
</Reference>
- <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 Include="ServiceStack.ServiceInterface">
+ <HintPath>..\packages\ServiceStack.3.9.32\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 Include="ServiceStack.Text">
+ <HintPath>..\packages\ServiceStack.Text.3.9.32\lib\net35\ServiceStack.Text.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
@@ -3,7 +3,6 @@
using System.IO;
using System.Linq;
using ServiceStack.Common.Extensions;
-using ServiceStack.Configuration;
using ServiceStack.ServiceHost;
using ServiceStack.Text;
@@ -24,7 +23,7 @@ public void Init(string filePath, string baseUrl)
if (File.Exists(filePath))
{
var json = File.ReadAllText(filePath);
- this.Pages = JsonSerializer.DeserializeFromString<List<Page>>(json);
+ this.Pages = json.FromJson<List<Page>>();
this.Pages.ForEach(x => x.FilePath = x.FilePath.MapServerPath());
}
else
@@ -107,11 +107,11 @@ public string AbsoluteUrl
}
}
- public class PageService : RestServiceBase<Page>
+ public class PageService : Service
{
public PageManager PageManager { get; set; }
- public override object OnGet(Page request)
+ public object Get(Page request)
{
if (request.Name != null)
{
@@ -25,11 +25,11 @@ public SearchResponse()
public ResponseStatus ResponseStatus { get; set; }
}
- public class SearchService : RestServiceBase<Search>
+ public class SearchService : Service
{
public PageManager PageManager { get; set; }
- public override object OnGet(Search request)
+ public object Get(Search request)
{
var results = new List<Page>();
foreach (var page in PageManager.Pages)
@@ -1,8 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="ServiceStack" version="3.9.11" targetFramework="net35" />
+ <package id="ServiceStack" version="3.9.32" targetFramework="net35" />
<package id="ServiceStack.Common" version="3.9.11" targetFramework="net35" />
+ <package id="ServiceStack.Common" version="3.9.32" targetFramework="net35" />
<package id="ServiceStack.OrmLite.SqlServer" version="3.9.9" targetFramework="net35" />
+ <package id="ServiceStack.OrmLite.SqlServer" version="3.9.32" targetFramework="net35" />
<package id="ServiceStack.Redis" version="3.9.11" targetFramework="net35" />
+ <package id="ServiceStack.Redis" version="3.9.32" targetFramework="net35" />
<package id="ServiceStack.Text" version="3.9.11" targetFramework="net35" />
+ <package id="ServiceStack.Text" version="3.9.32" targetFramework="net35" />
</packages>
Oops, something went wrong.

0 comments on commit b99e848

Please sign in to comment.