Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/WebIndex.App/config/webexpress.config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<uri>http://localhost/</uri>
<endpoint uri="http://localhost/"/>

<limit>
<connectionlimit>300</connectionlimit>
<uploadlimit>3000000000</uploadlimit>
</limit>
<kestrel>
<maxconcurrentconnections>300</maxconcurrentconnections>
<maxrequestbodysize>3000000000</maxrequestbodysize>
</kestrel>

<culture>de-DE</culture>

Expand Down
5 changes: 4 additions & 1 deletion src/WebIndex/WebExpress.Tutorial.WebIndex.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@
<EmbeddedResource Include="../../README.md" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="HtmlAgilityPack" Version="1.12.4" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)' != 'DebugLocal'">
<PackageReference Include="HtmlAgilityPack" Version="1.12.4" />
<PackageReference Include="WebExpress.WebApp" Version="2.0.0-alpha" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace WebExpress.Tutorial.WebIndex.WebFragment.Content.Catalog
/// </summary>
[Section<SectionContentPreferences>]
[Scope<WWW.Setting.Catalog.Add>]
public class CatalogFormAdd : FragmentControlRestFormAdd
public class CatalogFormAdd : FragmentControlDataFormAdd
{
/// <summary>
/// Gets or sets the uir associated with the object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace WebExpress.Tutorial.WebIndex.WebFragment.Content.Catalog
/// <summary>
/// Represents a form for deleting a catalog index item.
/// </summary>
public class CatalogFormDelete : FragmentControlRestFormDelete
public class CatalogFormDelete : FragmentControlDataFormDelete
{
/// <summary>
/// Initializes a new instance of the class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace WebExpress.Tutorial.WebIndex.WebFragment.Content.Catalog
/// </summary>
[Section<SectionContentPreferences>]
[Scope<WWW.Setting.Catalog.Id.Edit>]
public class CatalogFormEdit : FragmentControlRestFormEdit
public class CatalogFormEdit : FragmentControlDataFormEdit
{
/// <summary>
/// Gets or sets the uir associated with the object.
Expand Down
16 changes: 13 additions & 3 deletions src/WebIndex/WebFragment/Content/Catalog/CatalogTable.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using WebExpress.WebApp.WebFragment;
using System.Net.Http;
using WebExpress.WebApp.WebData;
using WebExpress.WebApp.WebFragment;
using WebExpress.WebApp.WebSection;
using WebExpress.WebCore.WebAttribute;
using WebExpress.WebCore.WebFragment;
Expand All @@ -16,7 +18,7 @@ namespace WebExpress.Tutorial.WebIndex.WebFragment.Content.Catalog
/// </remarks>
[Section<SectionContentPrimary>]
[Scope<WWW.Setting.Catalog.Index>]
public sealed class CatalogTable : FragmentControlRestTable
public sealed class CatalogTable : FragmentControlDataTable
{
/// <summary>
/// Initializes a new instance of the class.
Expand All @@ -26,7 +28,15 @@ public sealed class CatalogTable : FragmentControlRestTable
public CatalogTable(ISitemapManager sitemapManager, IFragmentContext fragmentContext)
: base(fragmentContext)
{
RestUri = _ => sitemapManager.GetUri<WWW.Api._1_.Catalog.Table>(fragmentContext.ApplicationContext);
// the logical names of the closed query vocabulary map to their
// historical wire names through the typed helpers; this endpoint
// answers with an item list rather than the table row shape
ServiceFactory = renderContext => new DataServiceBuilder("data")
.Endpoint<WWW.Api._1_.Catalog.Table>()
.Method(HttpMethod.Get)
.Query(q => q.Search().Wql().Filter().Page().PageSize().OrderBy().OrderDir())
.Response(r => r.Items().Total())
.Build(renderContext);
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace WebExpress.Tutorial.WebIndex.WebFragment.Content.Seed
/// </summary>
[Section<SectionContentPreferences>]
[Scope<WWW.Setting.Seed.Add>]
public sealed class SeedRestFormAdd : FragmentControlRestFormAdd
public sealed class SeedDataFormAdd : FragmentControlDataFormAdd
{
/// <summary>
/// Gets the control element for entering the login identifier.
Expand All @@ -30,7 +30,7 @@ public sealed class SeedRestFormAdd : FragmentControlRestFormAdd
/// </summary>
/// <param name="sitemapManager">The sitemap manager.</param>
/// <param name="fragmentContext">The context of the fragment.</param>
public SeedRestFormAdd(ISitemapManager sitemapManager, IFragmentContext fragmentContext)
public SeedDataFormAdd(ISitemapManager sitemapManager, IFragmentContext fragmentContext)
: base(fragmentContext)
{
Add(Url);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ namespace WebExpress.Tutorial.WebIndex.WebFragment.Content.Seed
/// </summary>
[Section<SectionContentPreferences>]
[Scope<WWW.Setting.Seed.Id.Delete>]
public sealed class SeedRestFormDelete : FragmentControlRestFormDelete
public sealed class SeedDataFormDelete : FragmentControlDataFormDelete
{
/// <summary>
/// Initializes a new instance of the class.
/// </summary>
/// <param name="sitemapManager">The sitemap manager.</param>
/// <param name="fragmentContext">The context of the fragment.</param>
public SeedRestFormDelete(ISitemapManager sitemapManager, IFragmentContext fragmentContext)
public SeedDataFormDelete(ISitemapManager sitemapManager, IFragmentContext fragmentContext)
: base(fragmentContext)
{
Uri = _ => sitemapManager.GetUri<WWW.Api._1_.Seed.Index>(fragmentContext.ApplicationContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace WebExpress.Tutorial.WebIndex.WebFragment.Content.Seed
/// </summary>
[Section<SectionContentPreferences>]
[Scope<WWW.Setting.Seed.Id.Edit>]
public sealed class SeedRestFormEdit : FragmentControlRestFormEdit
public sealed class SeedDataFormEdit : FragmentControlDataFormEdit
{
/// <summary>
/// Gets the control element for entering the login identifier.
Expand All @@ -33,7 +33,7 @@ public sealed class SeedRestFormEdit : FragmentControlRestFormEdit
/// </summary>
/// <param name="sitemapManager">The sitemap manager.</param>
/// <param name="fragmentContext">The context of the fragment.</param>
public SeedRestFormEdit(ISitemapManager sitemapManager, IFragmentContext fragmentContext)
public SeedDataFormEdit(ISitemapManager sitemapManager, IFragmentContext fragmentContext)
: base(fragmentContext)
{
Add(Url);
Expand Down
17 changes: 14 additions & 3 deletions src/WebIndex/WebFragment/Content/Seed/SeedTable.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using WebExpress.WebApp.WebFragment;
using System.Net.Http;
using WebExpress.WebApp.WebData;
using WebExpress.WebApp.WebFragment;
using WebExpress.WebApp.WebSection;
using WebExpress.WebCore.WebAttribute;
using WebExpress.WebCore.WebFragment;
Expand All @@ -13,7 +15,7 @@ namespace WebExpress.Tutorial.WebIndex.WebFragment.Content.Seed
/// </summary>
[Section<SectionContentPrimary>]
[Scope<WWW.Setting.Seed.Index>]
public sealed class SeedTable : FragmentControlRestTable
public sealed class SeedTable : FragmentControlDataTable
{
private readonly ISitemapManager _sitemapManager;

Expand All @@ -26,7 +28,16 @@ public SeedTable(ISitemapManager sitemapManager, IFragmentContext fragmentContex
: base(fragmentContext)
{
_sitemapManager = sitemapManager;
RestUri = _ => _sitemapManager.GetUri<WWW.Api._1_.Seed.Table>(fragmentContext.ApplicationContext);

// the logical names of the closed query vocabulary map to their
// historical wire names through the typed helpers; this endpoint
// answers with an item list rather than the table row shape
ServiceFactory = renderContext => new DataServiceBuilder("data")
.Endpoint<WWW.Api._1_.Seed.Table>()
.Method(HttpMethod.Get)
.Query(q => q.Search().Wql().Filter().Page().PageSize().OrderBy().OrderDir())
.Response(r => r.Items().Total())
.Build(renderContext);
}

/// <summary>
Expand Down