瀏覽代碼

refactoring

master
Savorboard 7 年之前
父節點
當前提交
44c9b1b398
共有 14 個檔案被更改,包括 25 行新增24 行删除
  1. +1
    -1
      src/DotNetCore.CAP/Dashboard/Pages/HomePage.generated.cs
  2. +1
    -1
      src/DotNetCore.CAP/Dashboard/Pages/LayoutPage.generated.cs
  3. +1
    -1
      src/DotNetCore.CAP/Dashboard/Pages/NodePage.generated.cs
  4. +1
    -1
      src/DotNetCore.CAP/Dashboard/Pages/PublishedPage.generated.cs
  5. +1
    -1
      src/DotNetCore.CAP/Dashboard/Pages/ReceivedPage.generated.cs
  6. +1
    -1
      src/DotNetCore.CAP/Dashboard/Pages/SubscriberPage.generated.cs
  7. +1
    -1
      src/DotNetCore.CAP/Dashboard/Pages/_BlockMetric.generated.cs
  8. +1
    -1
      src/DotNetCore.CAP/Dashboard/Pages/_Breadcrumbs.generated.cs
  9. +1
    -1
      src/DotNetCore.CAP/Dashboard/Pages/_InlineMetric.generated.cs
  10. +1
    -1
      src/DotNetCore.CAP/Dashboard/Pages/_Navigation.generated.cs
  11. +1
    -1
      src/DotNetCore.CAP/Dashboard/Pages/_Paginator.generated.cs
  12. +1
    -1
      src/DotNetCore.CAP/Dashboard/Pages/_PerPageSelector.generated.cs
  13. +1
    -1
      src/DotNetCore.CAP/Dashboard/Pages/_SidebarMenu.generated.cs
  14. +12
    -11
      src/DotNetCore.CAP/Dashboard/RazorPage.cs

+ 1
- 1
src/DotNetCore.CAP/Dashboard/Pages/HomePage.generated.cs 查看文件

@@ -61,7 +61,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden

public override void Execute()
protected override void Execute()
{




+ 1
- 1
src/DotNetCore.CAP/Dashboard/Pages/LayoutPage.generated.cs 查看文件

@@ -50,7 +50,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden

public override void Execute()
protected override void Execute()
{




+ 1
- 1
src/DotNetCore.CAP/Dashboard/Pages/NodePage.generated.cs 查看文件

@@ -33,7 +33,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden

public override void Execute()
protected override void Execute()
{




+ 1
- 1
src/DotNetCore.CAP/Dashboard/Pages/PublishedPage.generated.cs 查看文件

@@ -56,7 +56,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden

public override void Execute()
protected override void Execute()
{




+ 1
- 1
src/DotNetCore.CAP/Dashboard/Pages/ReceivedPage.generated.cs 查看文件

@@ -56,7 +56,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden

public override void Execute()
protected override void Execute()
{




+ 1
- 1
src/DotNetCore.CAP/Dashboard/Pages/SubscriberPage.generated.cs 查看文件

@@ -45,7 +45,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden

public override void Execute()
protected override void Execute()
{




+ 1
- 1
src/DotNetCore.CAP/Dashboard/Pages/_BlockMetric.generated.cs 查看文件

@@ -33,7 +33,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden

public override void Execute()
protected override void Execute()
{




+ 1
- 1
src/DotNetCore.CAP/Dashboard/Pages/_Breadcrumbs.generated.cs 查看文件

@@ -27,7 +27,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden

public override void Execute()
protected override void Execute()
{




+ 1
- 1
src/DotNetCore.CAP/Dashboard/Pages/_InlineMetric.generated.cs 查看文件

@@ -27,7 +27,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden

public override void Execute()
protected override void Execute()
{




+ 1
- 1
src/DotNetCore.CAP/Dashboard/Pages/_Navigation.generated.cs 查看文件

@@ -27,7 +27,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden

public override void Execute()
protected override void Execute()
{




+ 1
- 1
src/DotNetCore.CAP/Dashboard/Pages/_Paginator.generated.cs 查看文件

@@ -33,7 +33,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden

public override void Execute()
protected override void Execute()
{




+ 1
- 1
src/DotNetCore.CAP/Dashboard/Pages/_PerPageSelector.generated.cs 查看文件

@@ -27,7 +27,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden

public override void Execute()
protected override void Execute()
{




+ 1
- 1
src/DotNetCore.CAP/Dashboard/Pages/_SidebarMenu.generated.cs 查看文件

@@ -27,7 +27,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden

public override void Execute()
protected override void Execute()
{




+ 12
- 11
src/DotNetCore.CAP/Dashboard/RazorPage.cs 查看文件

@@ -3,6 +3,7 @@ using System.Diagnostics;
using System.Net;
using System.Text;
using DotNetCore.CAP.Dashboard.Monitoring;
using DotNetCore.CAP.Internal;
using DotNetCore.CAP.NodeDiscovery;
using Microsoft.Extensions.DependencyInjection;

@@ -20,16 +21,16 @@ namespace DotNetCore.CAP.Dashboard
Html = new HtmlHelper(this);
}

public RazorPage Layout { get; protected set; }
public HtmlHelper Html { get; }
protected RazorPage Layout { get; set; }
protected HtmlHelper Html { get; }
public UrlHelper Url { get; private set; }

public IStorage Storage { get; internal set; }
public string AppPath { get; internal set; }
public string NodeName { get; internal set; }
protected IStorage Storage { get; set; }
protected string AppPath { get; set; }
protected string NodeName { get; set; }

public int StatsPollingInterval { get; internal set; }
public Stopwatch GenerationTime { get; private set; }
protected int StatsPollingInterval { get; set; }
protected Stopwatch GenerationTime { get; private set; }

public StatisticsDto Statistics
{
@@ -40,16 +41,16 @@ namespace DotNetCore.CAP.Dashboard
}
}

protected DashboardRequest Request { private get; set; }
protected DashboardResponse Response { private get; set; }
private DashboardRequest Request { get; set; }
private DashboardResponse Response { get; set; }
internal IServiceProvider RequestServices { get; private set; }

public string RequestPath => Request.Path;

/// <exclude />
public abstract void Execute();
protected abstract void Execute();

public string Query(string key)
protected string Query(string key)
{
return Request.GetQuery(key);
}


Loading…
取消
儲存