Commit 44c9b1b3 authored by Savorboard's avatar Savorboard

refactoring

parent 0f146b81
......@@ -61,7 +61,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden
public override void Execute()
protected override void Execute()
{
......
......@@ -50,7 +50,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden
public override void Execute()
protected override void Execute()
{
......
......@@ -33,7 +33,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden
public override void Execute()
protected override void Execute()
{
......
......@@ -56,7 +56,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden
public override void Execute()
protected override void Execute()
{
......
......@@ -56,7 +56,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden
public override void Execute()
protected override void Execute()
{
......
......@@ -45,7 +45,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden
public override void Execute()
protected override void Execute()
{
......
......@@ -33,7 +33,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden
public override void Execute()
protected override void Execute()
{
......
......@@ -27,7 +27,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden
public override void Execute()
protected override void Execute()
{
......
......@@ -27,7 +27,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden
public override void Execute()
protected override void Execute()
{
......
......@@ -27,7 +27,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden
public override void Execute()
protected override void Execute()
{
......
......@@ -33,7 +33,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden
public override void Execute()
protected override void Execute()
{
......
......@@ -27,7 +27,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden
public override void Execute()
protected override void Execute()
{
......
......@@ -27,7 +27,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
{
#line hidden
public override void Execute()
protected override void Execute()
{
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment