Browse Source

Architectural refactoring

master
Savorboard 5 years ago
parent
commit
5d1c1bfb08
100 changed files with 161 additions and 25 deletions
  1. +7
    -0
      CAP.sln
  2. +6
    -6
      samples/Sample.RabbitMQ.MySql/Controllers/ValuesController.cs
  3. +1
    -0
      samples/Sample.RabbitMQ.MySql/Program.cs
  4. +1
    -1
      samples/Sample.RabbitMQ.MySql/Properties/launchSettings.json
  5. +3
    -2
      samples/Sample.RabbitMQ.MySql/Startup.cs
  6. +1
    -1
      samples/Sample.RabbitMQ.MySql/appsettings.json
  7. +1
    -1
      src/DotNetCore.CAP.AzureServiceBus/CAP.AzureServiceBusOptionsExtension.cs
  8. +0
    -0
      src/DotNetCore.CAP.Dashboard/BatchCommandDispatcher.cs
  9. +0
    -0
      src/DotNetCore.CAP.Dashboard/CAP.DashboardMiddleware.cs
  10. +0
    -0
      src/DotNetCore.CAP.Dashboard/CAP.DashboardOptions.cs
  11. +0
    -0
      src/DotNetCore.CAP.Dashboard/CAP.DashboardOptionsExtensions.cs
  12. +0
    -0
      src/DotNetCore.CAP.Dashboard/CombinedResourceDispatcher.cs
  13. +0
    -0
      src/DotNetCore.CAP.Dashboard/CommandDispatcher.cs
  14. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/css/bootstrap.min.css
  15. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/css/cap.css
  16. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/css/jsonview.min.css
  17. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/css/rickshaw.min.css
  18. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/fonts/glyphicons-halflings-regular.eot
  19. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/fonts/glyphicons-halflings-regular.svg
  20. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/fonts/glyphicons-halflings-regular.ttf
  21. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/fonts/glyphicons-halflings-regular.woff
  22. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/fonts/glyphicons-halflings-regular.woff2
  23. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/js/bootstrap.min.js
  24. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/js/cap.js
  25. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/js/d3.layout.min.js
  26. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/js/d3.min.js
  27. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/js/jquery-2.1.4.min.js
  28. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/js/jsonview.min.js
  29. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/js/moment-with-locales.min.js
  30. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/js/moment.min.js
  31. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/js/rickshaw.min.js
  32. +1
    -1
      src/DotNetCore.CAP.Dashboard/Content/resx/Strings.Designer.cs
  33. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/resx/Strings.resx
  34. +0
    -0
      src/DotNetCore.CAP.Dashboard/Content/resx/Strings.zh.resx
  35. +0
    -0
      src/DotNetCore.CAP.Dashboard/DashboardContext.cs
  36. +0
    -0
      src/DotNetCore.CAP.Dashboard/DashboardMetric.cs
  37. +0
    -0
      src/DotNetCore.CAP.Dashboard/DashboardMetrics.cs
  38. +0
    -0
      src/DotNetCore.CAP.Dashboard/DashboardRequest.cs
  39. +0
    -0
      src/DotNetCore.CAP.Dashboard/DashboardResponse.cs
  40. +0
    -0
      src/DotNetCore.CAP.Dashboard/DashboardRoutes.cs
  41. +125
    -0
      src/DotNetCore.CAP.Dashboard/DotNetCore.CAP.Dashboard.csproj
  42. +0
    -0
      src/DotNetCore.CAP.Dashboard/EmbeddedResourceDispatcher.cs
  43. +0
    -0
      src/DotNetCore.CAP.Dashboard/GatewayProxy/DownstreamUrl.cs
  44. +0
    -0
      src/DotNetCore.CAP.Dashboard/GatewayProxy/GatewayProxyMiddleware.cs
  45. +0
    -0
      src/DotNetCore.CAP.Dashboard/GatewayProxy/IRequestMapper.Default.cs
  46. +0
    -0
      src/DotNetCore.CAP.Dashboard/GatewayProxy/IRequestMapper.cs
  47. +0
    -0
      src/DotNetCore.CAP.Dashboard/GatewayProxy/Requester/HttpClientBuilder.cs
  48. +0
    -0
      src/DotNetCore.CAP.Dashboard/GatewayProxy/Requester/HttpClientHttpRequester.cs
  49. +0
    -0
      src/DotNetCore.CAP.Dashboard/GatewayProxy/Requester/IHttpClient.cs
  50. +0
    -0
      src/DotNetCore.CAP.Dashboard/GatewayProxy/Requester/IHttpClientBuilder.cs
  51. +0
    -0
      src/DotNetCore.CAP.Dashboard/GatewayProxy/Requester/IHttpClientCache.cs
  52. +0
    -0
      src/DotNetCore.CAP.Dashboard/GatewayProxy/Requester/IHttpRequester.cs
  53. +0
    -0
      src/DotNetCore.CAP.Dashboard/GatewayProxy/Requester/MemoryHttpClientCache.cs
  54. +1
    -1
      src/DotNetCore.CAP.Dashboard/HtmlHelper.cs
  55. +0
    -0
      src/DotNetCore.CAP.Dashboard/IDashboardAuthorizationFilter.cs
  56. +0
    -0
      src/DotNetCore.CAP.Dashboard/IDashboardDispatcher.cs
  57. +1
    -1
      src/DotNetCore.CAP.Dashboard/IMonitoringApi.cs
  58. +0
    -0
      src/DotNetCore.CAP.Dashboard/JsonDispatcher.cs
  59. +0
    -0
      src/DotNetCore.CAP.Dashboard/JsonStats.cs
  60. +0
    -0
      src/DotNetCore.CAP.Dashboard/LocalRequestsOnlyAuthorizationFilter.cs
  61. +0
    -0
      src/DotNetCore.CAP.Dashboard/MenuItem.cs
  62. +0
    -0
      src/DotNetCore.CAP.Dashboard/MessageHistoryRenderer.cs
  63. +0
    -0
      src/DotNetCore.CAP.Dashboard/MessagesSidebarMenu.cs
  64. +0
    -0
      src/DotNetCore.CAP.Dashboard/Metric.cs
  65. +0
    -0
      src/DotNetCore.CAP.Dashboard/Monitoring/MessageDto.cs
  66. +1
    -1
      src/DotNetCore.CAP.Dashboard/Monitoring/MessageQueryDto.cs
  67. +0
    -0
      src/DotNetCore.CAP.Dashboard/Monitoring/ServerDto.cs
  68. +0
    -0
      src/DotNetCore.CAP.Dashboard/Monitoring/StatisticsDto.cs
  69. +0
    -0
      src/DotNetCore.CAP.Dashboard/NavigationMenu.cs
  70. +0
    -0
      src/DotNetCore.CAP.Dashboard/NonEscapedString.cs
  71. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pager.cs
  72. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/BlockMetric.cs
  73. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/Breadcrumbs.cs
  74. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/HomePage.cs
  75. +1
    -1
      src/DotNetCore.CAP.Dashboard/Pages/HomePage.cshtml
  76. +3
    -3
      src/DotNetCore.CAP.Dashboard/Pages/HomePage.generated.cs
  77. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/InlineMetric.cs
  78. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/LayoutPage.cs
  79. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/LayoutPage.cshtml
  80. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/LayoutPage.generated.cs
  81. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/NodePage.cs
  82. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/NodePage.cshtml
  83. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/NodePage.generated.cs
  84. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/PublishedPage.cs
  85. +1
    -1
      src/DotNetCore.CAP.Dashboard/Pages/PublishedPage.cshtml
  86. +3
    -2
      src/DotNetCore.CAP.Dashboard/Pages/PublishedPage.generated.cs
  87. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/ReceivedPage.cs
  88. +1
    -1
      src/DotNetCore.CAP.Dashboard/Pages/ReceivedPage.cshtml
  89. +3
    -2
      src/DotNetCore.CAP.Dashboard/Pages/ReceivedPage.generated.cs
  90. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/SidebarMenu.cs
  91. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/SubscriberPage.cshtml
  92. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/SubscriberPage.generated.cs
  93. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/_BlockMetric.cshtml
  94. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/_BlockMetric.generated.cs
  95. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/_Breadcrumbs.cshtml
  96. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/_Breadcrumbs.generated.cs
  97. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/_InlineMetric.cshtml
  98. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/_InlineMetric.generated.cs
  99. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/_Navigation.cshtml
  100. +0
    -0
      src/DotNetCore.CAP.Dashboard/Pages/_Navigation.generated.cs

+ 7
- 0
CAP.sln View File

@@ -68,6 +68,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotNetCore.CAP.InMemoryStor
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample.AzureServiceBus.InMemory", "samples\Sample.AzureServiceBus.InMemory\Sample.AzureServiceBus.InMemory.csproj", "{1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample.AzureServiceBus.InMemory", "samples\Sample.AzureServiceBus.InMemory\Sample.AzureServiceBus.InMemory.csproj", "{1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetCore.CAP.Dashboard", "src\DotNetCore.CAP.Dashboard\DotNetCore.CAP.Dashboard.csproj", "{56FB261C-67AF-4715-9A46-4FA4FAB91B2C}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@@ -142,6 +144,10 @@ Global
{1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8}.Debug|Any CPU.Build.0 = Debug|Any CPU {1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8}.Release|Any CPU.ActiveCfg = Release|Any CPU {1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8}.Release|Any CPU.Build.0 = Release|Any CPU {1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8}.Release|Any CPU.Build.0 = Release|Any CPU
{56FB261C-67AF-4715-9A46-4FA4FAB91B2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{56FB261C-67AF-4715-9A46-4FA4FAB91B2C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{56FB261C-67AF-4715-9A46-4FA4FAB91B2C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{56FB261C-67AF-4715-9A46-4FA4FAB91B2C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
@@ -165,6 +171,7 @@ Global
{63B2A464-FBEA-42FB-8EFA-98AFA39FC920} = {9B2AE124-6636-4DE9-83A3-70360DABD0C4} {63B2A464-FBEA-42FB-8EFA-98AFA39FC920} = {9B2AE124-6636-4DE9-83A3-70360DABD0C4}
{58B6E829-C6C8-457C-9DD0-C600650254DF} = {9B2AE124-6636-4DE9-83A3-70360DABD0C4} {58B6E829-C6C8-457C-9DD0-C600650254DF} = {9B2AE124-6636-4DE9-83A3-70360DABD0C4}
{1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8} = {3A6B6931-A123-477A-9469-8B468B5385AF} {1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8} = {3A6B6931-A123-477A-9469-8B468B5385AF}
{56FB261C-67AF-4715-9A46-4FA4FAB91B2C} = {9B2AE124-6636-4DE9-83A3-70360DABD0C4}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2E70565D-94CF-40B4-BFE1-AC18D5F736AB} SolutionGuid = {2E70565D-94CF-40B4-BFE1-AC18D5F736AB}


+ 6
- 6
samples/Sample.RabbitMQ.MySql/Controllers/ValuesController.cs View File

@@ -36,10 +36,10 @@ namespace Sample.RabbitMQ.MySql.Controllers
//your business code //your business code
connection.Execute("insert into test(name) values('test')", transaction: (IDbTransaction)transaction.DbTransaction); connection.Execute("insert into test(name) values('test')", transaction: (IDbTransaction)transaction.DbTransaction);


for (int i = 0; i < 5; i++)
{
_capBus.Publish("sample.rabbitmq.mysql", DateTime.Now);
}
//for (int i = 0; i < 5; i++)
//{
_capBus.Publish("sample.rabbitmq.mysql", DateTime.Now);
//}


transaction.Commit(); transaction.Commit();
} }
@@ -68,10 +68,10 @@ namespace Sample.RabbitMQ.MySql.Controllers
} }


[NonAction] [NonAction]
[CapSubscribe("#.rabbitmq.mysql")]
[CapSubscribe("sample.rabbitmq.mysql")]
public void Subscriber(DateTime time) public void Subscriber(DateTime time)
{ {
Console.WriteLine($@"{DateTime.Now}, Subscriber invoked, Sent time:{time}");
//Console.WriteLine($@"{DateTime.Now}, Subscriber invoked, Sent time:{time}");
} }
} }
} }

+ 1
- 0
samples/Sample.RabbitMQ.MySql/Program.cs View File

@@ -13,6 +13,7 @@ namespace Sample.RabbitMQ.MySql
public static IWebHost BuildWebHost(string[] args) => public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args) WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>() .UseStartup<Startup>()
.UseUrls("http://*:15173")
.Build(); .Build();
} }
} }

+ 1
- 1
samples/Sample.RabbitMQ.MySql/Properties/launchSettings.json View File

@@ -21,7 +21,7 @@
"launchBrowser": true, "launchBrowser": true,
"launchUrl": "cap", "launchUrl": "cap",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
"ASPNETCORE_ENVIRONMENT": "Production"
}, },
"applicationUrl": "http://localhost:57173/" "applicationUrl": "http://localhost:57173/"
} }


+ 3
- 2
samples/Sample.RabbitMQ.MySql/Startup.cs View File

@@ -15,12 +15,13 @@ namespace Sample.RabbitMQ.MySql
services.AddCap(x => services.AddCap(x =>
{ {
x.UseEntityFramework<AppDbContext>(); x.UseEntityFramework<AppDbContext>();
x.UseRabbitMQ("localhost");
x.UseRabbitMQ("192.168.2.120");
x.UseDashboard(); x.UseDashboard();
x.FailedRetryCount = 5; x.FailedRetryCount = 5;
x.FailedThresholdCallback = (type, name, content) => x.FailedThresholdCallback = (type, name, content) =>
{ {
Console.WriteLine($@"A message of type {type} failed after executing {x.FailedRetryCount} several times, requiring manual troubleshooting. Message name: {name}, message body: {content}");
Console.WriteLine(
$@"A message of type {type} failed after executing {x.FailedRetryCount} several times, requiring manual troubleshooting. Message name: {name}, message body: {content}");
}; };
}); });




+ 1
- 1
samples/Sample.RabbitMQ.MySql/appsettings.json View File

@@ -2,7 +2,7 @@
"Logging": { "Logging": {
"IncludeScopes": false, "IncludeScopes": false,
"LogLevel": { "LogLevel": {
"Default": "Debug"
"Default": "Error"
} }
} }
} }

+ 1
- 1
src/DotNetCore.CAP.AzureServiceBus/CAP.AzureServiceBusOptionsExtension.cs View File

@@ -24,7 +24,7 @@ namespace DotNetCore.CAP
services.Configure(_configure); services.Configure(_configure);


services.AddSingleton<IConsumerClientFactory, AzureServiceBusConsumerClientFactory>(); services.AddSingleton<IConsumerClientFactory, AzureServiceBusConsumerClientFactory>();
services.AddSingleton<IPublishExecutor, AzureServiceBusPublishMessageSender>();
services.AddSingleton<ITransportPublisher, AzureServiceBusPublishMessageSender>();
services.AddSingleton<IPublishMessageSender, AzureServiceBusPublishMessageSender>(); services.AddSingleton<IPublishMessageSender, AzureServiceBusPublishMessageSender>();
} }
} }

src/DotNetCore.CAP/Dashboard/BatchCommandDispatcher.cs → src/DotNetCore.CAP.Dashboard/BatchCommandDispatcher.cs View File


src/DotNetCore.CAP/Dashboard/CAP.DashboardMiddleware.cs → src/DotNetCore.CAP.Dashboard/CAP.DashboardMiddleware.cs View File


src/DotNetCore.CAP/Dashboard/CAP.DashboardOptions.cs → src/DotNetCore.CAP.Dashboard/CAP.DashboardOptions.cs View File


src/DotNetCore.CAP/Dashboard/CAP.DashboardOptionsExtensions.cs → src/DotNetCore.CAP.Dashboard/CAP.DashboardOptionsExtensions.cs View File


src/DotNetCore.CAP/Dashboard/CombinedResourceDispatcher.cs → src/DotNetCore.CAP.Dashboard/CombinedResourceDispatcher.cs View File


src/DotNetCore.CAP/Dashboard/CommandDispatcher.cs → src/DotNetCore.CAP.Dashboard/CommandDispatcher.cs View File


src/DotNetCore.CAP/Dashboard/Content/css/bootstrap.min.css → src/DotNetCore.CAP.Dashboard/Content/css/bootstrap.min.css View File


src/DotNetCore.CAP/Dashboard/Content/css/cap.css → src/DotNetCore.CAP.Dashboard/Content/css/cap.css View File


src/DotNetCore.CAP/Dashboard/Content/css/jsonview.min.css → src/DotNetCore.CAP.Dashboard/Content/css/jsonview.min.css View File


src/DotNetCore.CAP/Dashboard/Content/css/rickshaw.min.css → src/DotNetCore.CAP.Dashboard/Content/css/rickshaw.min.css View File


src/DotNetCore.CAP/Dashboard/Content/fonts/glyphicons-halflings-regular.eot → src/DotNetCore.CAP.Dashboard/Content/fonts/glyphicons-halflings-regular.eot View File


src/DotNetCore.CAP/Dashboard/Content/fonts/glyphicons-halflings-regular.svg → src/DotNetCore.CAP.Dashboard/Content/fonts/glyphicons-halflings-regular.svg View File


src/DotNetCore.CAP/Dashboard/Content/fonts/glyphicons-halflings-regular.ttf → src/DotNetCore.CAP.Dashboard/Content/fonts/glyphicons-halflings-regular.ttf View File


src/DotNetCore.CAP/Dashboard/Content/fonts/glyphicons-halflings-regular.woff → src/DotNetCore.CAP.Dashboard/Content/fonts/glyphicons-halflings-regular.woff View File


src/DotNetCore.CAP/Dashboard/Content/fonts/glyphicons-halflings-regular.woff2 → src/DotNetCore.CAP.Dashboard/Content/fonts/glyphicons-halflings-regular.woff2 View File


src/DotNetCore.CAP/Dashboard/Content/js/bootstrap.min.js → src/DotNetCore.CAP.Dashboard/Content/js/bootstrap.min.js View File


src/DotNetCore.CAP/Dashboard/Content/js/cap.js → src/DotNetCore.CAP.Dashboard/Content/js/cap.js View File


src/DotNetCore.CAP/Dashboard/Content/js/d3.layout.min.js → src/DotNetCore.CAP.Dashboard/Content/js/d3.layout.min.js View File


src/DotNetCore.CAP/Dashboard/Content/js/d3.min.js → src/DotNetCore.CAP.Dashboard/Content/js/d3.min.js View File


src/DotNetCore.CAP/Dashboard/Content/js/jquery-2.1.4.min.js → src/DotNetCore.CAP.Dashboard/Content/js/jquery-2.1.4.min.js View File


src/DotNetCore.CAP/Dashboard/Content/js/jsonview.min.js → src/DotNetCore.CAP.Dashboard/Content/js/jsonview.min.js View File


src/DotNetCore.CAP/Dashboard/Content/js/moment-with-locales.min.js → src/DotNetCore.CAP.Dashboard/Content/js/moment-with-locales.min.js View File


src/DotNetCore.CAP/Dashboard/Content/js/moment.min.js → src/DotNetCore.CAP.Dashboard/Content/js/moment.min.js View File


src/DotNetCore.CAP/Dashboard/Content/js/rickshaw.min.js → src/DotNetCore.CAP.Dashboard/Content/js/rickshaw.min.js View File


src/DotNetCore.CAP/Dashboard/Content/resx/Strings.Designer.cs → src/DotNetCore.CAP.Dashboard/Content/resx/Strings.Designer.cs View File

@@ -19,7 +19,7 @@ namespace DotNetCore.CAP.Dashboard.Resources {
// class via a tool like ResGen or Visual Studio. // class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen // To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project. // with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Strings { public class Strings {

src/DotNetCore.CAP/Dashboard/Content/resx/Strings.resx → src/DotNetCore.CAP.Dashboard/Content/resx/Strings.resx View File


src/DotNetCore.CAP/Dashboard/Content/resx/Strings.zh.resx → src/DotNetCore.CAP.Dashboard/Content/resx/Strings.zh.resx View File


src/DotNetCore.CAP/Dashboard/DashboardContext.cs → src/DotNetCore.CAP.Dashboard/DashboardContext.cs View File


src/DotNetCore.CAP/Dashboard/DashboardMetric.cs → src/DotNetCore.CAP.Dashboard/DashboardMetric.cs View File


src/DotNetCore.CAP/Dashboard/DashboardMetrics.cs → src/DotNetCore.CAP.Dashboard/DashboardMetrics.cs View File


src/DotNetCore.CAP/Dashboard/DashboardRequest.cs → src/DotNetCore.CAP.Dashboard/DashboardRequest.cs View File


src/DotNetCore.CAP/Dashboard/DashboardResponse.cs → src/DotNetCore.CAP.Dashboard/DashboardResponse.cs View File


src/DotNetCore.CAP/Dashboard/DashboardRoutes.cs → src/DotNetCore.CAP.Dashboard/DashboardRoutes.cs View File


+ 125
- 0
src/DotNetCore.CAP.Dashboard/DotNetCore.CAP.Dashboard.csproj View File

@@ -0,0 +1,125 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<EmbeddedResource Include="Content\css\bootstrap.min.css" />
<EmbeddedResource Include="Content\css\cap.css" />
<EmbeddedResource Include="Content\css\jsonview.min.css" />
<EmbeddedResource Include="Content\css\rickshaw.min.css" />
<EmbeddedResource Include="Content\fonts\glyphicons-halflings-regular.eot" />
<EmbeddedResource Include="Content\fonts\glyphicons-halflings-regular.svg" />
<EmbeddedResource Include="Content\fonts\glyphicons-halflings-regular.ttf" />
<EmbeddedResource Include="Content\fonts\glyphicons-halflings-regular.woff" />
<EmbeddedResource Include="Content\fonts\glyphicons-halflings-regular.woff2" />
<EmbeddedResource Include="Content\js\bootstrap.min.js" />
<EmbeddedResource Include="Content\js\cap.js" />
<EmbeddedResource Include="Content\js\d3.layout.min.js" />
<EmbeddedResource Include="Content\js\d3.min.js" />
<EmbeddedResource Include="Content\js\jquery-2.1.4.min.js" />
<EmbeddedResource Include="Content\js\jsonview.min.js" />
<EmbeddedResource Include="Content\js\moment-with-locales.min.js" />
<EmbeddedResource Include="Content\js\moment.min.js" />
<EmbeddedResource Include="Content\js\rickshaw.min.js" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\DotNetCore.CAP\DotNetCore.CAP.csproj" />
</ItemGroup>

<ItemGroup>
<Compile Update="Dashboard\Content\resx\Strings.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Strings.resx</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\_SidebarMenu.generated.cs">
<DependentUpon>_SidebarMenu.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\SidebarMenu.cs">
<DependentUpon>_SidebarMenu.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\ReceivedPage.generated.cs">
<DependentUpon>ReceivedPage.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\ReceivedPage.cs">
<DependentUpon>ReceivedPage.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\_BlockMetric.generated.cs">
<DependentUpon>_BlockMetric.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\BlockMetric.cs">
<DependentUpon>_BlockMetric.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\Breadcrumbs.cs">
<DependentUpon>_Breadcrumbs.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\_Breadcrumbs.generated.cs">
<DependentUpon>_Breadcrumbs.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\_Paginator.generated.cs">
<DependentUpon>_Paginator.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\_Paginator.cs">
<DependentUpon>_Paginator.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\_PerPageSelector.cs">
<DependentUpon>_PerPageSelector.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\_PerPageSelector.generated.cs">
<DependentUpon>_PerPageSelector.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\PublishedPage.cs">
<DependentUpon>PublishedPage.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\PublishedPage*.cs">
<DependentUpon>PublishedPage.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\LayoutPage.*.cs">
<DependentUpon>LayoutPage.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\LayoutPage.cs">
<DependentUpon>LayoutPage.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\InlineMetric.cs">
<DependentUpon>_InlineMetric.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\_InlineMetric.generated.cs">
<DependentUpon>_InlineMetric.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\_Navigation.generated.cs">
<DependentUpon>_Navigation.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\HomePage.generated.cs">
<DependentUpon>HomePage.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\HomePage.cs">
<DependentUpon>HomePage.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\SubscriberPage.generated.cs">
<DependentUpon>SubscriberPage.cshtml</DependentUpon>
</Compile>
<Compile Update="Dashboard\Pages\NodePage*.cs">
<DependentUpon>NodePage.cshtml</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Content\resx\Strings.resx">
<CustomToolNamespace>DotNetCore.CAP.Dashboard.Resources</CustomToolNamespace>
<LastGenOutput>Strings.Designer.cs</LastGenOutput>
<Generator>PublicResXFileCodeGenerator</Generator>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Dashboard\Content\resx\Strings.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<CustomToolNamespace>DotNetCore.CAP.Dashboard.Resources</CustomToolNamespace>
<LastGenOutput>Strings.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>

</Project>

src/DotNetCore.CAP/Dashboard/EmbeddedResourceDispatcher.cs → src/DotNetCore.CAP.Dashboard/EmbeddedResourceDispatcher.cs View File


src/DotNetCore.CAP/Dashboard/GatewayProxy/DownstreamUrl.cs → src/DotNetCore.CAP.Dashboard/GatewayProxy/DownstreamUrl.cs View File


src/DotNetCore.CAP/Dashboard/GatewayProxy/GatewayProxyMiddleware.cs → src/DotNetCore.CAP.Dashboard/GatewayProxy/GatewayProxyMiddleware.cs View File


src/DotNetCore.CAP/Dashboard/GatewayProxy/IRequestMapper.Default.cs → src/DotNetCore.CAP.Dashboard/GatewayProxy/IRequestMapper.Default.cs View File


src/DotNetCore.CAP/Dashboard/GatewayProxy/IRequestMapper.cs → src/DotNetCore.CAP.Dashboard/GatewayProxy/IRequestMapper.cs View File


src/DotNetCore.CAP/Dashboard/GatewayProxy/Requester/HttpClientBuilder.cs → src/DotNetCore.CAP.Dashboard/GatewayProxy/Requester/HttpClientBuilder.cs View File


src/DotNetCore.CAP/Dashboard/GatewayProxy/Requester/HttpClientHttpRequester.cs → src/DotNetCore.CAP.Dashboard/GatewayProxy/Requester/HttpClientHttpRequester.cs View File


src/DotNetCore.CAP/Dashboard/GatewayProxy/Requester/IHttpClient.cs → src/DotNetCore.CAP.Dashboard/GatewayProxy/Requester/IHttpClient.cs View File


src/DotNetCore.CAP/Dashboard/GatewayProxy/Requester/IHttpClientBuilder.cs → src/DotNetCore.CAP.Dashboard/GatewayProxy/Requester/IHttpClientBuilder.cs View File


src/DotNetCore.CAP/Dashboard/GatewayProxy/Requester/IHttpClientCache.cs → src/DotNetCore.CAP.Dashboard/GatewayProxy/Requester/IHttpClientCache.cs View File


src/DotNetCore.CAP/Dashboard/GatewayProxy/Requester/IHttpRequester.cs → src/DotNetCore.CAP.Dashboard/GatewayProxy/Requester/IHttpRequester.cs View File


src/DotNetCore.CAP/Dashboard/GatewayProxy/Requester/MemoryHttpClientCache.cs → src/DotNetCore.CAP.Dashboard/GatewayProxy/Requester/MemoryHttpClientCache.cs View File


src/DotNetCore.CAP/Dashboard/HtmlHelper.cs → src/DotNetCore.CAP.Dashboard/HtmlHelper.cs View File

@@ -11,7 +11,7 @@ using System.Text.RegularExpressions;
using DotNetCore.CAP.Dashboard.Pages; using DotNetCore.CAP.Dashboard.Pages;
using DotNetCore.CAP.Dashboard.Resources; using DotNetCore.CAP.Dashboard.Resources;
using DotNetCore.CAP.Infrastructure; using DotNetCore.CAP.Infrastructure;
using DotNetCore.CAP.Models;
using DotNetCore.CAP.Messages;
using Microsoft.Extensions.Internal; using Microsoft.Extensions.Internal;


namespace DotNetCore.CAP.Dashboard namespace DotNetCore.CAP.Dashboard

src/DotNetCore.CAP/Dashboard/IDashboardAuthorizationFilter.cs → src/DotNetCore.CAP.Dashboard/IDashboardAuthorizationFilter.cs View File


src/DotNetCore.CAP/Dashboard/IDashboardDispatcher.cs → src/DotNetCore.CAP.Dashboard/IDashboardDispatcher.cs View File


src/DotNetCore.CAP/Dashboard/IMonitoringApi.cs → src/DotNetCore.CAP.Dashboard/IMonitoringApi.cs View File

@@ -4,7 +4,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using DotNetCore.CAP.Dashboard.Monitoring; using DotNetCore.CAP.Dashboard.Monitoring;
using DotNetCore.CAP.Models;
using DotNetCore.CAP.Messages;


namespace DotNetCore.CAP.Dashboard namespace DotNetCore.CAP.Dashboard
{ {

src/DotNetCore.CAP/Dashboard/JsonDispatcher.cs → src/DotNetCore.CAP.Dashboard/JsonDispatcher.cs View File


src/DotNetCore.CAP/Dashboard/JsonStats.cs → src/DotNetCore.CAP.Dashboard/JsonStats.cs View File


src/DotNetCore.CAP/Dashboard/LocalRequestsOnlyAuthorizationFilter.cs → src/DotNetCore.CAP.Dashboard/LocalRequestsOnlyAuthorizationFilter.cs View File


src/DotNetCore.CAP/Dashboard/MenuItem.cs → src/DotNetCore.CAP.Dashboard/MenuItem.cs View File


src/DotNetCore.CAP/Dashboard/MessageHistoryRenderer.cs → src/DotNetCore.CAP.Dashboard/MessageHistoryRenderer.cs View File


src/DotNetCore.CAP/Dashboard/MessagesSidebarMenu.cs → src/DotNetCore.CAP.Dashboard/MessagesSidebarMenu.cs View File


src/DotNetCore.CAP/Dashboard/Metric.cs → src/DotNetCore.CAP.Dashboard/Metric.cs View File


src/DotNetCore.CAP/Dashboard/Monitoring/MessageDto.cs → src/DotNetCore.CAP.Dashboard/Monitoring/MessageDto.cs View File


src/DotNetCore.CAP/Dashboard/Monitoring/MessageQueryDto.cs → src/DotNetCore.CAP.Dashboard/Monitoring/MessageQueryDto.cs View File

@@ -1,7 +1,7 @@
// Copyright (c) .NET Core Community. All rights reserved. // Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information. // Licensed under the MIT License. See License.txt in the project root for license information.


using DotNetCore.CAP.Models;
using DotNetCore.CAP.Messages;


namespace DotNetCore.CAP.Dashboard.Monitoring namespace DotNetCore.CAP.Dashboard.Monitoring
{ {

src/DotNetCore.CAP/Dashboard/Monitoring/ServerDto.cs → src/DotNetCore.CAP.Dashboard/Monitoring/ServerDto.cs View File


src/DotNetCore.CAP/Dashboard/Monitoring/StatisticsDto.cs → src/DotNetCore.CAP.Dashboard/Monitoring/StatisticsDto.cs View File


src/DotNetCore.CAP/Dashboard/NavigationMenu.cs → src/DotNetCore.CAP.Dashboard/NavigationMenu.cs View File


src/DotNetCore.CAP/Dashboard/NonEscapedString.cs → src/DotNetCore.CAP.Dashboard/NonEscapedString.cs View File


src/DotNetCore.CAP/Dashboard/Pager.cs → src/DotNetCore.CAP.Dashboard/Pager.cs View File


src/DotNetCore.CAP/Dashboard/Pages/BlockMetric.cs → src/DotNetCore.CAP.Dashboard/Pages/BlockMetric.cs View File


src/DotNetCore.CAP/Dashboard/Pages/Breadcrumbs.cs → src/DotNetCore.CAP.Dashboard/Pages/Breadcrumbs.cs View File


src/DotNetCore.CAP/Dashboard/Pages/HomePage.cs → src/DotNetCore.CAP.Dashboard/Pages/HomePage.cs View File


src/DotNetCore.CAP/Dashboard/Pages/HomePage.cshtml → src/DotNetCore.CAP.Dashboard/Pages/HomePage.cshtml View File

@@ -1,7 +1,7 @@
@* Generator: Template TypeVisibility: Internal GeneratePrettyNames: True *@ @* Generator: Template TypeVisibility: Internal GeneratePrettyNames: True *@
@using DotNetCore.CAP.Dashboard.Pages @using DotNetCore.CAP.Dashboard.Pages
@using DotNetCore.CAP.Dashboard.Resources @using DotNetCore.CAP.Dashboard.Resources
@using DotNetCore.CAP.Models
@using DotNetCore.CAP.Messages
@using Newtonsoft.Json @using Newtonsoft.Json
@inherits DotNetCore.CAP.Dashboard.RazorPage @inherits DotNetCore.CAP.Dashboard.RazorPage
@{ @{

src/DotNetCore.CAP/Dashboard/Pages/HomePage.generated.cs → src/DotNetCore.CAP.Dashboard/Pages/HomePage.generated.cs View File

@@ -1,4 +1,6 @@
#pragma warning disable 1591
using DotNetCore.CAP.Messages;

#pragma warning disable 1591
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
@@ -45,8 +47,6 @@ namespace DotNetCore.CAP.Dashboard.Pages
#line hidden #line hidden


#line 4 "..\..\HomePage.cshtml" #line 4 "..\..\HomePage.cshtml"
using DotNetCore.CAP.Models;

#line default #line default
#line hidden #line hidden



src/DotNetCore.CAP/Dashboard/Pages/InlineMetric.cs → src/DotNetCore.CAP.Dashboard/Pages/InlineMetric.cs View File


src/DotNetCore.CAP/Dashboard/Pages/LayoutPage.cs → src/DotNetCore.CAP.Dashboard/Pages/LayoutPage.cs View File


src/DotNetCore.CAP/Dashboard/Pages/LayoutPage.cshtml → src/DotNetCore.CAP.Dashboard/Pages/LayoutPage.cshtml View File


src/DotNetCore.CAP/Dashboard/Pages/LayoutPage.generated.cs → src/DotNetCore.CAP.Dashboard/Pages/LayoutPage.generated.cs View File


src/DotNetCore.CAP/Dashboard/Pages/NodePage.cs → src/DotNetCore.CAP.Dashboard/Pages/NodePage.cs View File


src/DotNetCore.CAP/Dashboard/Pages/NodePage.cshtml → src/DotNetCore.CAP.Dashboard/Pages/NodePage.cshtml View File


src/DotNetCore.CAP/Dashboard/Pages/NodePage.generated.cs → src/DotNetCore.CAP.Dashboard/Pages/NodePage.generated.cs View File


src/DotNetCore.CAP/Dashboard/Pages/PublishedPage.cs → src/DotNetCore.CAP.Dashboard/Pages/PublishedPage.cs View File


src/DotNetCore.CAP/Dashboard/Pages/PublishedPage.cshtml → src/DotNetCore.CAP.Dashboard/Pages/PublishedPage.cshtml View File

@@ -4,7 +4,7 @@
@using DotNetCore.CAP.Dashboard.Monitoring @using DotNetCore.CAP.Dashboard.Monitoring
@using DotNetCore.CAP.Dashboard.Pages @using DotNetCore.CAP.Dashboard.Pages
@using DotNetCore.CAP.Dashboard.Resources @using DotNetCore.CAP.Dashboard.Resources
@using DotNetCore.CAP.Models
@using DotNetCore.CAP.Messages
@inherits DotNetCore.CAP.Dashboard.RazorPage @inherits DotNetCore.CAP.Dashboard.RazorPage
@{ @{
Layout = new LayoutPage(Strings.PublishedMessagesPage_Title); Layout = new LayoutPage(Strings.PublishedMessagesPage_Title);

src/DotNetCore.CAP/Dashboard/Pages/PublishedPage.generated.cs → src/DotNetCore.CAP.Dashboard/Pages/PublishedPage.generated.cs View File

@@ -1,4 +1,6 @@
#pragma warning disable 1591
using DotNetCore.CAP.Messages;

#pragma warning disable 1591
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
@@ -46,7 +48,6 @@ namespace DotNetCore.CAP.Dashboard.Pages
#line hidden #line hidden


#line 3 "..\..\PublishedPage.cshtml" #line 3 "..\..\PublishedPage.cshtml"
using DotNetCore.CAP.Models;


#line default #line default
#line hidden #line hidden

src/DotNetCore.CAP/Dashboard/Pages/ReceivedPage.cs → src/DotNetCore.CAP.Dashboard/Pages/ReceivedPage.cs View File


src/DotNetCore.CAP/Dashboard/Pages/ReceivedPage.cshtml → src/DotNetCore.CAP.Dashboard/Pages/ReceivedPage.cshtml View File

@@ -4,7 +4,7 @@
@using DotNetCore.CAP.Dashboard.Monitoring @using DotNetCore.CAP.Dashboard.Monitoring
@using DotNetCore.CAP.Dashboard.Pages @using DotNetCore.CAP.Dashboard.Pages
@using DotNetCore.CAP.Dashboard.Resources @using DotNetCore.CAP.Dashboard.Resources
@using DotNetCore.CAP.Models
@using DotNetCore.CAP.Messages
@inherits DotNetCore.CAP.Dashboard.RazorPage @inherits DotNetCore.CAP.Dashboard.RazorPage
@{ @{
Layout = new LayoutPage(Strings.ReceivedMessagesPage_Title); Layout = new LayoutPage(Strings.ReceivedMessagesPage_Title);

src/DotNetCore.CAP/Dashboard/Pages/ReceivedPage.generated.cs → src/DotNetCore.CAP.Dashboard/Pages/ReceivedPage.generated.cs View File

@@ -1,4 +1,6 @@
#pragma warning disable 1591
using DotNetCore.CAP.Messages;

#pragma warning disable 1591
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
@@ -46,7 +48,6 @@ namespace DotNetCore.CAP.Dashboard.Pages
#line hidden #line hidden


#line 3 "..\..\ReceivedPage.cshtml" #line 3 "..\..\ReceivedPage.cshtml"
using DotNetCore.CAP.Models;


#line default #line default
#line hidden #line hidden

src/DotNetCore.CAP/Dashboard/Pages/SidebarMenu.cs → src/DotNetCore.CAP.Dashboard/Pages/SidebarMenu.cs View File


src/DotNetCore.CAP/Dashboard/Pages/SubscriberPage.cshtml → src/DotNetCore.CAP.Dashboard/Pages/SubscriberPage.cshtml View File


src/DotNetCore.CAP/Dashboard/Pages/SubscriberPage.generated.cs → src/DotNetCore.CAP.Dashboard/Pages/SubscriberPage.generated.cs View File


src/DotNetCore.CAP/Dashboard/Pages/_BlockMetric.cshtml → src/DotNetCore.CAP.Dashboard/Pages/_BlockMetric.cshtml View File


src/DotNetCore.CAP/Dashboard/Pages/_BlockMetric.generated.cs → src/DotNetCore.CAP.Dashboard/Pages/_BlockMetric.generated.cs View File


src/DotNetCore.CAP/Dashboard/Pages/_Breadcrumbs.cshtml → src/DotNetCore.CAP.Dashboard/Pages/_Breadcrumbs.cshtml View File


src/DotNetCore.CAP/Dashboard/Pages/_Breadcrumbs.generated.cs → src/DotNetCore.CAP.Dashboard/Pages/_Breadcrumbs.generated.cs View File


src/DotNetCore.CAP/Dashboard/Pages/_InlineMetric.cshtml → src/DotNetCore.CAP.Dashboard/Pages/_InlineMetric.cshtml View File


src/DotNetCore.CAP/Dashboard/Pages/_InlineMetric.generated.cs → src/DotNetCore.CAP.Dashboard/Pages/_InlineMetric.generated.cs View File


src/DotNetCore.CAP/Dashboard/Pages/_Navigation.cshtml → src/DotNetCore.CAP.Dashboard/Pages/_Navigation.cshtml View File


src/DotNetCore.CAP/Dashboard/Pages/_Navigation.generated.cs → src/DotNetCore.CAP.Dashboard/Pages/_Navigation.generated.cs View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save