@@ -169,56 +169,56 @@ namespace DotNetCore.CAP.Dashboard.Resources { | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// Looks up a localized string similar to Id. | |||||
/// Looks up a localized string similar to Group. | |||||
/// </summary> | /// </summary> | ||||
public static string Common_Id { | |||||
public static string Common_Group { | |||||
get { | get { | ||||
return ResourceManager.GetString("Common_Id", resourceCulture); | |||||
return ResourceManager.GetString("Common_Group", resourceCulture); | |||||
} | } | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// Looks up a localized string similar to Job. | |||||
/// Looks up a localized string similar to Id. | |||||
/// </summary> | /// </summary> | ||||
public static string Common_Job { | |||||
public static string Common_Id { | |||||
get { | get { | ||||
return ResourceManager.GetString("Common_Job", resourceCulture); | |||||
return ResourceManager.GetString("Common_Id", resourceCulture); | |||||
} | } | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// Looks up a localized string similar to Job expired.. | |||||
/// Looks up a localized string similar to Less details.... | |||||
/// </summary> | /// </summary> | ||||
public static string Common_JobExpired { | |||||
public static string Common_LessDetails { | |||||
get { | get { | ||||
return ResourceManager.GetString("Common_JobExpired", resourceCulture); | |||||
return ResourceManager.GetString("Common_LessDetails", resourceCulture); | |||||
} | } | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// Looks up a localized string similar to Job's state has been changed while fetching data.. | |||||
/// Looks up a localized string similar to Method. | |||||
/// </summary> | /// </summary> | ||||
public static string Common_JobStateChanged_Text { | |||||
public static string Common_Method { | |||||
get { | get { | ||||
return ResourceManager.GetString("Common_JobStateChanged_Text", resourceCulture); | |||||
return ResourceManager.GetString("Common_Method", resourceCulture); | |||||
} | } | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// Looks up a localized string similar to Less details.... | |||||
/// Looks up a localized string similar to More details.... | |||||
/// </summary> | /// </summary> | ||||
public static string Common_LessDetails { | |||||
public static string Common_MoreDetails { | |||||
get { | get { | ||||
return ResourceManager.GetString("Common_LessDetails", resourceCulture); | |||||
return ResourceManager.GetString("Common_MoreDetails", resourceCulture); | |||||
} | } | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// Looks up a localized string similar to More details.... | |||||
/// Looks up a localized string similar to Name. | |||||
/// </summary> | /// </summary> | ||||
public static string Common_MoreDetails { | |||||
public static string Common_Name { | |||||
get { | get { | ||||
return ResourceManager.GetString("Common_MoreDetails", resourceCulture); | |||||
return ResourceManager.GetString("Common_Name", resourceCulture); | |||||
} | } | ||||
} | } | ||||
@@ -330,62 +330,6 @@ namespace DotNetCore.CAP.Dashboard.Resources { | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// Looks up a localized string similar to <strong>Failed jobs do not become expired</strong> to allow you to re-queue them without any | |||||
/// time pressure. You should re-queue or delete them manually, or apply <code>AutomaticRetry(OnAttemptsExceeded = AttemptsExceededAction.Delete)</code> | |||||
/// attribute to delete them automatically.. | |||||
/// </summary> | |||||
public static string FailedJobsPage_FailedJobsNotExpire_Warning_Html { | |||||
get { | |||||
return ResourceManager.GetString("FailedJobsPage_FailedJobsNotExpire_Warning_Html", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// Looks up a localized string similar to You have no failed jobs at the moment.. | |||||
/// </summary> | |||||
public static string FailedJobsPage_NoJobs { | |||||
get { | |||||
return ResourceManager.GetString("FailedJobsPage_NoJobs", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// Looks up a localized string similar to Failed. | |||||
/// </summary> | |||||
public static string FailedJobsPage_Table_Failed { | |||||
get { | |||||
return ResourceManager.GetString("FailedJobsPage_Table_Failed", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// Looks up a localized string similar to Failed Jobs. | |||||
/// </summary> | |||||
public static string FailedJobsPage_Title { | |||||
get { | |||||
return ResourceManager.GetString("FailedJobsPage_Title", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// Looks up a localized string similar to The queue is empty.. | |||||
/// </summary> | |||||
public static string FetchedJobsPage_NoJobs { | |||||
get { | |||||
return ResourceManager.GetString("FetchedJobsPage_NoJobs", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// Looks up a localized string similar to Fetched jobs. | |||||
/// </summary> | |||||
public static string FetchedJobsPage_Title { | |||||
get { | |||||
return ResourceManager.GetString("FetchedJobsPage_Title", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// Looks up a localized string similar to Failed. | /// Looks up a localized string similar to Failed. | ||||
/// </summary> | /// </summary> | ||||
@@ -638,33 +582,6 @@ namespace DotNetCore.CAP.Dashboard.Resources { | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// Looks up a localized string similar to Failed Jobs. | |||||
/// </summary> | |||||
public static string Metrics_FailedJobs { | |||||
get { | |||||
return ResourceManager.GetString("Metrics_FailedJobs", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// Looks up a localized string similar to Processing Jobs. | |||||
/// </summary> | |||||
public static string Metrics_ProcessingJobs { | |||||
get { | |||||
return ResourceManager.GetString("Metrics_ProcessingJobs", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// Looks up a localized string similar to Recurring Jobs. | |||||
/// </summary> | |||||
public static string Metrics_RecurringJobs { | |||||
get { | |||||
return ResourceManager.GetString("Metrics_RecurringJobs", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// Looks up a localized string similar to Retries. | /// Looks up a localized string similar to Retries. | ||||
/// </summary> | /// </summary> | ||||
@@ -674,15 +591,6 @@ namespace DotNetCore.CAP.Dashboard.Resources { | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// Looks up a localized string similar to Scheduled Jobs. | |||||
/// </summary> | |||||
public static string Metrics_ScheduledJobs { | |||||
get { | |||||
return ResourceManager.GetString("Metrics_ScheduledJobs", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// Looks up a localized string similar to Servers. | /// Looks up a localized string similar to Servers. | ||||
/// </summary> | /// </summary> | ||||
@@ -692,15 +600,6 @@ namespace DotNetCore.CAP.Dashboard.Resources { | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// Looks up a localized string similar to Succeeded Jobs. | |||||
/// </summary> | |||||
public static string Metrics_SucceededJobs { | |||||
get { | |||||
return ResourceManager.GetString("Metrics_SucceededJobs", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// Looks up a localized string similar to Total Connections. | /// Looks up a localized string similar to Total Connections. | ||||
/// </summary> | /// </summary> | ||||
@@ -782,42 +681,6 @@ namespace DotNetCore.CAP.Dashboard.Resources { | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// Looks up a localized string similar to Looks like the job was aborted. | |||||
/// </summary> | |||||
public static string ProcessingJobsPage_Aborted { | |||||
get { | |||||
return ResourceManager.GetString("ProcessingJobsPage_Aborted", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// Looks up a localized string similar to No jobs are being processed right now.. | |||||
/// </summary> | |||||
public static string ProcessingJobsPage_NoJobs { | |||||
get { | |||||
return ResourceManager.GetString("ProcessingJobsPage_NoJobs", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// Looks up a localized string similar to Started. | |||||
/// </summary> | |||||
public static string ProcessingJobsPage_Table_Started { | |||||
get { | |||||
return ResourceManager.GetString("ProcessingJobsPage_Table_Started", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// Looks up a localized string similar to Processing Jobs. | |||||
/// </summary> | |||||
public static string ProcessingJobsPage_Title { | |||||
get { | |||||
return ResourceManager.GetString("ProcessingJobsPage_Title", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// Looks up a localized string similar to Published Messages. | /// Looks up a localized string similar to Published Messages. | ||||
/// </summary> | /// </summary> | ||||
@@ -854,42 +717,6 @@ namespace DotNetCore.CAP.Dashboard.Resources { | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// Looks up a localized string similar to All is OK – you have no retries.. | |||||
/// </summary> | |||||
public static string RetriesPage_NoJobs { | |||||
get { | |||||
return ResourceManager.GetString("RetriesPage_NoJobs", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// Looks up a localized string similar to Retries. | |||||
/// </summary> | |||||
public static string RetriesPage_Title { | |||||
get { | |||||
return ResourceManager.GetString("RetriesPage_Title", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | |||||
/// Looks up a localized string similar to <h4>Retries are working, but this page can't be displayed</h4> | |||||
/// <p> | |||||
/// Don't worry, retries are working as expected. Your current job storage does not support | |||||
/// some queries required to show this page. Please try to update your storage or wait until | |||||
/// the full command set is implemented. | |||||
/// </p> | |||||
/// <p> | |||||
/// Please go to the <a href="{0}">Scheduled jobs</a> page to see all the | |||||
/// scheduled jobs including retries. | |||||
/// </p>. | |||||
/// </summary> | |||||
public static string RetriesPage_Warning_Html { | |||||
get { | |||||
return ResourceManager.GetString("RetriesPage_Warning_Html", resourceCulture); | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// Looks up a localized string similar to There are no active servers. Background tasks will not be processed.. | /// Looks up a localized string similar to There are no active servers. Background tasks will not be processed.. | ||||
/// </summary> | /// </summary> | ||||
@@ -144,15 +144,6 @@ | |||||
<data name="Common_Id" xml:space="preserve"> | <data name="Common_Id" xml:space="preserve"> | ||||
<value>Id</value> | <value>Id</value> | ||||
</data> | </data> | ||||
<data name="Common_Job" xml:space="preserve"> | |||||
<value>Job</value> | |||||
</data> | |||||
<data name="Common_JobExpired" xml:space="preserve"> | |||||
<value>Job expired.</value> | |||||
</data> | |||||
<data name="Common_JobStateChanged_Text" xml:space="preserve"> | |||||
<value>Job's state has been changed while fetching data.</value> | |||||
</data> | |||||
<data name="Common_LessDetails" xml:space="preserve"> | <data name="Common_LessDetails" xml:space="preserve"> | ||||
<value>Less details...</value> | <value>Less details...</value> | ||||
</data> | </data> | ||||
@@ -192,26 +183,6 @@ | |||||
<data name="EnqueuedJobsPage_Title" xml:space="preserve"> | <data name="EnqueuedJobsPage_Title" xml:space="preserve"> | ||||
<value>Enqueued jobs</value> | <value>Enqueued jobs</value> | ||||
</data> | </data> | ||||
<data name="FailedJobsPage_FailedJobsNotExpire_Warning_Html" xml:space="preserve"> | |||||
<value><strong>Failed jobs do not become expired</strong> to allow you to re-queue them without any | |||||
time pressure. You should re-queue or delete them manually, or apply <code>AutomaticRetry(OnAttemptsExceeded = AttemptsExceededAction.Delete)</code> | |||||
attribute to delete them automatically.</value> | |||||
</data> | |||||
<data name="FailedJobsPage_NoJobs" xml:space="preserve"> | |||||
<value>You have no failed jobs at the moment.</value> | |||||
</data> | |||||
<data name="FailedJobsPage_Table_Failed" xml:space="preserve"> | |||||
<value>Failed</value> | |||||
</data> | |||||
<data name="FailedJobsPage_Title" xml:space="preserve"> | |||||
<value>Failed Jobs</value> | |||||
</data> | |||||
<data name="FetchedJobsPage_NoJobs" xml:space="preserve"> | |||||
<value>The queue is empty.</value> | |||||
</data> | |||||
<data name="FetchedJobsPage_Title" xml:space="preserve"> | |||||
<value>Fetched jobs</value> | |||||
</data> | |||||
<data name="HomePage_HistoryGraph" xml:space="preserve"> | <data name="HomePage_HistoryGraph" xml:space="preserve"> | ||||
<value>History graph</value> | <value>History graph</value> | ||||
</data> | </data> | ||||
@@ -242,36 +213,6 @@ | |||||
<data name="PerPageSelector_ItemsPerPage" xml:space="preserve"> | <data name="PerPageSelector_ItemsPerPage" xml:space="preserve"> | ||||
<value>Items per page</value> | <value>Items per page</value> | ||||
</data> | </data> | ||||
<data name="ProcessingJobsPage_Aborted" xml:space="preserve"> | |||||
<value>Looks like the job was aborted</value> | |||||
</data> | |||||
<data name="ProcessingJobsPage_NoJobs" xml:space="preserve"> | |||||
<value>No jobs are being processed right now.</value> | |||||
</data> | |||||
<data name="ProcessingJobsPage_Table_Started" xml:space="preserve"> | |||||
<value>Started</value> | |||||
</data> | |||||
<data name="ProcessingJobsPage_Title" xml:space="preserve"> | |||||
<value>Processing Jobs</value> | |||||
</data> | |||||
<data name="RetriesPage_NoJobs" xml:space="preserve"> | |||||
<value>All is OK – you have no retries.</value> | |||||
</data> | |||||
<data name="RetriesPage_Title" xml:space="preserve"> | |||||
<value>Retries</value> | |||||
</data> | |||||
<data name="RetriesPage_Warning_Html" xml:space="preserve"> | |||||
<value><h4>Retries are working, but this page can't be displayed</h4> | |||||
<p> | |||||
Don't worry, retries are working as expected. Your current job storage does not support | |||||
some queries required to show this page. Please try to update your storage or wait until | |||||
the full command set is implemented. | |||||
</p> | |||||
<p> | |||||
Please go to the <a href="{0}">Scheduled jobs</a> page to see all the | |||||
scheduled jobs including retries. | |||||
</p></value> | |||||
</data> | |||||
<data name="ServersPage_NoServers" xml:space="preserve"> | <data name="ServersPage_NoServers" xml:space="preserve"> | ||||
<value>There are no active servers. Background tasks will not be processed.</value> | <value>There are no active servers. Background tasks will not be processed.</value> | ||||
</data> | </data> | ||||
@@ -332,27 +273,12 @@ | |||||
<data name="Metrics_DeletedJobs" xml:space="preserve"> | <data name="Metrics_DeletedJobs" xml:space="preserve"> | ||||
<value>Deleted Jobs</value> | <value>Deleted Jobs</value> | ||||
</data> | </data> | ||||
<data name="Metrics_FailedJobs" xml:space="preserve"> | |||||
<value>Failed Jobs</value> | |||||
</data> | |||||
<data name="Metrics_ProcessingJobs" xml:space="preserve"> | |||||
<value>Processing Jobs</value> | |||||
</data> | |||||
<data name="Metrics_RecurringJobs" xml:space="preserve"> | |||||
<value>Recurring Jobs</value> | |||||
</data> | |||||
<data name="Metrics_Retries" xml:space="preserve"> | <data name="Metrics_Retries" xml:space="preserve"> | ||||
<value>Retries</value> | <value>Retries</value> | ||||
</data> | </data> | ||||
<data name="Metrics_ScheduledJobs" xml:space="preserve"> | |||||
<value>Scheduled Jobs</value> | |||||
</data> | |||||
<data name="Metrics_Servers" xml:space="preserve"> | <data name="Metrics_Servers" xml:space="preserve"> | ||||
<value>Servers</value> | <value>Servers</value> | ||||
</data> | </data> | ||||
<data name="Metrics_SucceededJobs" xml:space="preserve"> | |||||
<value>Succeeded Jobs</value> | |||||
</data> | |||||
<data name="Metrics_TotalConnections" xml:space="preserve"> | <data name="Metrics_TotalConnections" xml:space="preserve"> | ||||
<value>Total Connections</value> | <value>Total Connections</value> | ||||
</data> | </data> | ||||
@@ -434,4 +360,13 @@ | |||||
<data name="SubscribersPage_Title" xml:space="preserve"> | <data name="SubscribersPage_Title" xml:space="preserve"> | ||||
<value>Subscribers</value> | <value>Subscribers</value> | ||||
</data> | </data> | ||||
<data name="Common_Group" xml:space="preserve"> | |||||
<value>Group</value> | |||||
</data> | |||||
<data name="Common_Method" xml:space="preserve"> | |||||
<value>Method</value> | |||||
</data> | |||||
<data name="Common_Name" xml:space="preserve"> | |||||
<value>Name</value> | |||||
</data> | |||||
</root> | </root> |
@@ -144,15 +144,6 @@ | |||||
<data name="Common_Id" xml:space="preserve"> | <data name="Common_Id" xml:space="preserve"> | ||||
<value>编号</value> | <value>编号</value> | ||||
</data> | </data> | ||||
<data name="Common_Job" xml:space="preserve"> | |||||
<value>作业</value> | |||||
</data> | |||||
<data name="Common_JobExpired" xml:space="preserve"> | |||||
<value>作业过期.</value> | |||||
</data> | |||||
<data name="Common_JobStateChanged_Text" xml:space="preserve"> | |||||
<value>作业状态已经发生变化</value> | |||||
</data> | |||||
<data name="Common_LessDetails" xml:space="preserve"> | <data name="Common_LessDetails" xml:space="preserve"> | ||||
<value>收起...</value> | <value>收起...</value> | ||||
</data> | </data> | ||||
@@ -192,26 +183,6 @@ | |||||
<data name="EnqueuedJobsPage_Title" xml:space="preserve"> | <data name="EnqueuedJobsPage_Title" xml:space="preserve"> | ||||
<value>队列作业</value> | <value>队列作业</value> | ||||
</data> | </data> | ||||
<data name="FailedJobsPage_FailedJobsNotExpire_Warning_Html" xml:space="preserve"> | |||||
<value><strong>Failed jobs do not become expired</strong> to allow you to re-queue them without any | |||||
time pressure. You should re-queue or delete them manually, or apply <code>AutomaticRetry(OnAttemptsExceeded = AttemptsExceededAction.Delete)</code> | |||||
attribute to delete them automatically.</value> | |||||
</data> | |||||
<data name="FailedJobsPage_NoJobs" xml:space="preserve"> | |||||
<value>没有失败的作业</value> | |||||
</data> | |||||
<data name="FailedJobsPage_Table_Failed" xml:space="preserve"> | |||||
<value>失败</value> | |||||
</data> | |||||
<data name="FailedJobsPage_Title" xml:space="preserve"> | |||||
<value>失败的作业</value> | |||||
</data> | |||||
<data name="FetchedJobsPage_NoJobs" xml:space="preserve"> | |||||
<value>没有任何作业</value> | |||||
</data> | |||||
<data name="FetchedJobsPage_Title" xml:space="preserve"> | |||||
<value>Fetched jobs</value> | |||||
</data> | |||||
<data name="HomePage_HistoryGraph" xml:space="preserve"> | <data name="HomePage_HistoryGraph" xml:space="preserve"> | ||||
<value>历史图表走势</value> | <value>历史图表走势</value> | ||||
</data> | </data> | ||||
@@ -242,18 +213,6 @@ | |||||
<data name="PerPageSelector_ItemsPerPage" xml:space="preserve"> | <data name="PerPageSelector_ItemsPerPage" xml:space="preserve"> | ||||
<value>每页条数</value> | <value>每页条数</value> | ||||
</data> | </data> | ||||
<data name="ProcessingJobsPage_Aborted" xml:space="preserve"> | |||||
<value>作业疑似终止</value> | |||||
</data> | |||||
<data name="ProcessingJobsPage_NoJobs" xml:space="preserve"> | |||||
<value>没有立即执行的作业</value> | |||||
</data> | |||||
<data name="ProcessingJobsPage_Table_Started" xml:space="preserve"> | |||||
<value>执行</value> | |||||
</data> | |||||
<data name="ProcessingJobsPage_Title" xml:space="preserve"> | |||||
<value>执行中作业</value> | |||||
</data> | |||||
<data name="QueuesPage_NoJobs" xml:space="preserve"> | <data name="QueuesPage_NoJobs" xml:space="preserve"> | ||||
<value>没有作业</value> | <value>没有作业</value> | ||||
</data> | </data> | ||||
@@ -272,24 +231,6 @@ | |||||
<data name="QueuesPage_Title" xml:space="preserve"> | <data name="QueuesPage_Title" xml:space="preserve"> | ||||
<value>队列</value> | <value>队列</value> | ||||
</data> | </data> | ||||
<data name="RetriesPage_NoJobs" xml:space="preserve"> | |||||
<value>没有重试的作业</value> | |||||
</data> | |||||
<data name="RetriesPage_Title" xml:space="preserve"> | |||||
<value>重试</value> | |||||
</data> | |||||
<data name="RetriesPage_Warning_Html" xml:space="preserve"> | |||||
<value><h4>Retries are working, but this page can't be displayed</h4> | |||||
<p> | |||||
Don't worry, retries are working as expected. Your current job storage does not support | |||||
some queries required to show this page. Please try to update your storage or wait until | |||||
the full command set is implemented. | |||||
</p> | |||||
<p> | |||||
Please go to the <a href="{0}">Scheduled jobs</a> page to see all the | |||||
scheduled jobs including retries. | |||||
</p></value> | |||||
</data> | |||||
<data name="ServersPage_NoServers" xml:space="preserve"> | <data name="ServersPage_NoServers" xml:space="preserve"> | ||||
<value>没有活动服务器。后台作业将不会被执行。</value> | <value>没有活动服务器。后台作业将不会被执行。</value> | ||||
</data> | </data> | ||||
@@ -350,27 +291,12 @@ | |||||
<data name="Metrics_DeletedJobs" xml:space="preserve"> | <data name="Metrics_DeletedJobs" xml:space="preserve"> | ||||
<value>删除</value> | <value>删除</value> | ||||
</data> | </data> | ||||
<data name="Metrics_FailedJobs" xml:space="preserve"> | |||||
<value>失败</value> | |||||
</data> | |||||
<data name="Metrics_ProcessingJobs" xml:space="preserve"> | <data name="Metrics_ProcessingJobs" xml:space="preserve"> | ||||
<value>执行中</value> | <value>执行中</value> | ||||
</data> | </data> | ||||
<data name="Metrics_RecurringJobs" xml:space="preserve"> | |||||
<value>定时</value> | |||||
</data> | |||||
<data name="Metrics_Retries" xml:space="preserve"> | |||||
<value>重试</value> | |||||
</data> | |||||
<data name="Metrics_ScheduledJobs" xml:space="preserve"> | |||||
<value>计划</value> | |||||
</data> | |||||
<data name="Metrics_Servers" xml:space="preserve"> | <data name="Metrics_Servers" xml:space="preserve"> | ||||
<value>服务器</value> | <value>服务器</value> | ||||
</data> | </data> | ||||
<data name="Metrics_SucceededJobs" xml:space="preserve"> | |||||
<value>成功的作业</value> | |||||
</data> | |||||
<data name="Metrics_TotalConnections" xml:space="preserve"> | <data name="Metrics_TotalConnections" xml:space="preserve"> | ||||
<value>总连接数</value> | <value>总连接数</value> | ||||
</data> | </data> | ||||
@@ -452,4 +378,13 @@ | |||||
<data name="SubscribersPage_Title" xml:space="preserve"> | <data name="SubscribersPage_Title" xml:space="preserve"> | ||||
<value>订阅的消息</value> | <value>订阅的消息</value> | ||||
</data> | </data> | ||||
<data name="Common_Group" xml:space="preserve"> | |||||
<value>分组</value> | |||||
</data> | |||||
<data name="Common_Method" xml:space="preserve"> | |||||
<value>方法</value> | |||||
</data> | |||||
<data name="Common_Name" xml:space="preserve"> | |||||
<value>名称</value> | |||||
</data> | |||||
</root> | </root> |
@@ -2,6 +2,8 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Linq; | using System.Linq; | ||||
using DotNetCore.CAP.Dashboard.Resources; | using DotNetCore.CAP.Dashboard.Resources; | ||||
using DotNetCore.CAP.Internal; | |||||
using Microsoft.Extensions.DependencyInjection; | |||||
namespace DotNetCore.CAP.Dashboard | namespace DotNetCore.CAP.Dashboard | ||||
{ | { | ||||
@@ -63,20 +65,12 @@ namespace DotNetCore.CAP.Dashboard | |||||
page => | page => | ||||
{ | { | ||||
long retryCount; | long retryCount; | ||||
using (var connection = page.Storage.GetConnection()) | |||||
{ | |||||
var storageConnection = connection as IStorageConnection; | |||||
if (storageConnection == null) | |||||
{ | |||||
return null; | |||||
} | |||||
retryCount =1111; | |||||
} | |||||
var methodCache = page.RequestServices.GetService<MethodMatcherCache>(); | |||||
retryCount = methodCache.GetCandidatesMethodsOfGroupNameGrouped().Sum(x => x.Value.Count); | |||||
return new Metric(retryCount.ToString("N0")) | return new Metric(retryCount.ToString("N0")) | ||||
{ | { | ||||
Style = retryCount > 0 ? MetricStyle.Warning : MetricStyle.Default | |||||
Style = retryCount > 0 ? MetricStyle.Default : MetricStyle.Warning | |||||
}; | }; | ||||
}); | }); | ||||
@@ -13,11 +13,12 @@ | |||||
<div class="row"> | <div class="row"> | ||||
<div class="col-md-12"> | <div class="col-md-12"> | ||||
<h1 class="page-header">订阅列表</h1> | |||||
<h1 class="page-header">@Strings.SubscribersPage_Title</h1> | |||||
@if (subscribers.Count == 0) | @if (subscribers.Count == 0) | ||||
{ | { | ||||
<div class="alert alert-warning"> | <div class="alert alert-warning"> | ||||
@Strings.ServersPage_NoServers | @Strings.ServersPage_NoServers | ||||
</div> | </div> | ||||
} | } | ||||
@@ -27,9 +28,9 @@ | |||||
<table class="table"> | <table class="table"> | ||||
<thead> | <thead> | ||||
<tr> | <tr> | ||||
<th width="20%">分组</th> | |||||
<th width="20%">@Strings.Common_Group</th> | |||||
<th> | <th> | ||||
<table class="table subscribe-table margin-bottom-zero"><tr><td width="40%">名称</td><td>方法</td></tr></table> | |||||
<table class="table subscribe-table margin-bottom-zero"><tr><td width="40%">@Strings.Common_Name</td><td>@Strings.Common_Method</td></tr></table> | |||||
</th> | </th> | ||||
</tr> | </tr> | ||||
</thead> | </thead> | ||||