Commit 3d5559e2 authored by yangxiaodong's avatar yangxiaodong

update resource.

parent 00edf7b2
...@@ -439,7 +439,7 @@ namespace DotNetCore.CAP.Dashboard.Resources { ...@@ -439,7 +439,7 @@ namespace DotNetCore.CAP.Dashboard.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to No published messages found.. /// Looks up a localized string similar to No messages found..
/// </summary> /// </summary>
public static string MessagesPage_NoMessages { public static string MessagesPage_NoMessages {
get { get {
......
...@@ -340,7 +340,7 @@ ...@@ -340,7 +340,7 @@
<value>Retries</value> <value>Retries</value>
</data> </data>
<data name="MessagesPage_NoMessages" xml:space="preserve"> <data name="MessagesPage_NoMessages" xml:space="preserve">
<value>No published messages found.</value> <value>No messages found.</value>
</data> </data>
<data name="PublishedPage_Title" xml:space="preserve"> <data name="PublishedPage_Title" xml:space="preserve">
<value>Published Jobs</value> <value>Published Jobs</value>
......
...@@ -387,4 +387,7 @@ ...@@ -387,4 +387,7 @@
<data name="Common_Name" xml:space="preserve"> <data name="Common_Name" xml:space="preserve">
<value>名称</value> <value>名称</value>
</data> </data>
<data name="MessagesPage_NoMessages" xml:space="preserve">
<value>没有消息</value>
</data>
</root> </root>
\ No newline at end of file
...@@ -19,7 +19,7 @@ namespace DotNetCore.CAP.Dashboard ...@@ -19,7 +19,7 @@ namespace DotNetCore.CAP.Dashboard
public static void AddCommand( public static void AddCommand(
this RouteCollection routes, this RouteCollection routes,
string pathTemplate, string pathTemplate,
Func<DashboardContext, bool> command) Func<DashboardContext, bool> command)
{ {
if (routes == null) throw new ArgumentNullException(nameof(routes)); if (routes == null) throw new ArgumentNullException(nameof(routes));
...@@ -63,34 +63,6 @@ namespace DotNetCore.CAP.Dashboard ...@@ -63,34 +63,6 @@ namespace DotNetCore.CAP.Dashboard
if (command == null) throw new ArgumentNullException(nameof(command)); if (command == null) throw new ArgumentNullException(nameof(command));
routes.Add(pathTemplate, new BatchCommandDispatcher(command)); routes.Add(pathTemplate, new BatchCommandDispatcher(command));
} }
//public static void AddClientBatchCommand(
// this RouteCollection routes,
// string pathTemplate,
// [NotNull] Action<IBackgroundJobClient, string> command)
//{
// if (command == null) throw new ArgumentNullException(nameof(command));
// routes.AddBatchCommand(pathTemplate, (context, jobId) =>
// {
// var client = new BackgroundJobClient(context.Storage);
// command(client, jobId);
// });
//}
//public static void AddRecurringBatchCommand(
// this RouteCollection routes,
// string pathTemplate,
// Action<RecurringJobManager, string> command)
//{
// if (command == null) throw new ArgumentNullException(nameof(command));
// routes.AddBatchCommand(pathTemplate, (context, jobId) =>
// {
// var manager = new RecurringJobManager(context.Storage);
// command(manager, jobId);
// });
//}
} }
} }
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