Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwplvx
Aurora
比较版本
6f300342932c75e83f64bbbd879cbdf8221a2e42...ce6e518793c367f650634dfc263365717c6f2d50
Aurora
项目概览
lwplvx
/
Aurora
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Aurora
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
源分支
ce6e518793c367f650634dfc263365717c6f2d50
选择Git版本
...
目标分支
6f300342932c75e83f64bbbd879cbdf8221a2e42
选择Git版本
比较
Commits (2)
https://gitcode.net/lwplvx/aurora/-/commit/6d5558469a76eab9ddacbc3c9493727a864b15f1
加入 httpreports,consul
2021-06-15T18:20:17+08:00
lwplvx
lwplvx@yeah.net
https://gitcode.net/lwplvx/aurora/-/commit/ce6e518793c367f650634dfc263365717c6f2d50
基本配置
2021-06-15T18:21:35+08:00
lwplvx
lwplvx@yeah.net
隐藏空白更改
内联
并排
Showing
22 changed file
with
349 addition
and
101 deletion
+349
-101
.gitignore
.gitignore
+2
-0
Aurora.Gateway/Aurora.Gateway.csproj
Aurora.Gateway/Aurora.Gateway.csproj
+6
-2
Aurora.Gateway/Controllers/WeatherForecastController.cs
Aurora.Gateway/Controllers/WeatherForecastController.cs
+0
-39
Aurora.Gateway/Program.cs
Aurora.Gateway/Program.cs
+6
-1
Aurora.Gateway/Properties/launchSettings.json
Aurora.Gateway/Properties/launchSettings.json
+1
-1
Aurora.Gateway/Startup.cs
Aurora.Gateway/Startup.cs
+8
-2
Aurora.Gateway/WeatherForecast.cs
Aurora.Gateway/WeatherForecast.cs
+0
-15
Aurora.Gateway/ocelot.json
Aurora.Gateway/ocelot.json
+22
-0
Aurora.HttpRepots/Aurora.HttpRepots.csproj
Aurora.HttpRepots/Aurora.HttpRepots.csproj
+12
-0
Aurora.HttpRepots/Program.cs
Aurora.HttpRepots/Program.cs
+26
-0
Aurora.HttpRepots/Properties/launchSettings.json
Aurora.HttpRepots/Properties/launchSettings.json
+28
-0
Aurora.HttpRepots/Startup.cs
Aurora.HttpRepots/Startup.cs
+44
-0
Aurora.HttpRepots/appsettings.json
Aurora.HttpRepots/appsettings.json
+33
-0
Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/AppBuilderExtensions.cs
...vices/Aurora.Core/Aurora.Core.Api/AppBuilderExtensions.cs
+49
-0
Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/Aurora.Core.Api.csproj
...rvices/Aurora.Core/Aurora.Core.Api/Aurora.Core.Api.csproj
+5
-2
Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/Controllers/HealthController .cs
...ora.Core/Aurora.Core.Api/Controllers/HealthController .cs
+12
-0
Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/Startup.cs
Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/Startup.cs
+13
-2
Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/appsettings.json
...icorservices/Aurora.Core/Aurora.Core.Api/appsettings.json
+23
-0
Aurora.Micorservices/Aurora.Core/Aurora.Core.EntityFramework/Aurora.Core.EntityFramework.csproj
...a.Core.EntityFramework/Aurora.Core.EntityFramework.csproj
+5
-5
Aurora.Micorservices/Aurora.Core/Aurora.Core.Service/Aurora.Core.Service.csproj
...urora.Core/Aurora.Core.Service/Aurora.Core.Service.csproj
+1
-1
aurora.sln
aurora.sln
+49
-30
blog-list.md
blog-list.md
+4
-1
未找到文件。
.gitignore
浏览文件 @
ce6e5187
...
...
@@ -404,3 +404,5 @@ ASALocalRun/
# Local History for Visual Studio
.localhistory/
appsettings.Development.json
.ionide
\ No newline at end of file
Aurora.Gateway/Aurora.Gateway.csproj
浏览文件 @
ce6e5187
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<PackageReference Include="ocelot" Version="17.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
</ItemGroup>
<ItemGroup>
<Folder Include="Controllers\" />
</ItemGroup>
</Project>
Aurora.Gateway/Controllers/WeatherForecastController.cs
已删除
100644 → 0
浏览文件 @
6f300342
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
Microsoft.AspNetCore.Mvc
;
using
Microsoft.Extensions.Logging
;
namespace
Aurora.Gateway.Controllers
{
[
ApiController
]
[
Route
(
"[controller]"
)]
public
class
WeatherForecastController
:
ControllerBase
{
private
static
readonly
string
[]
Summaries
=
new
[]
{
"Freezing"
,
"Bracing"
,
"Chilly"
,
"Cool"
,
"Mild"
,
"Warm"
,
"Balmy"
,
"Hot"
,
"Sweltering"
,
"Scorching"
};
private
readonly
ILogger
<
WeatherForecastController
>
_logger
;
public
WeatherForecastController
(
ILogger
<
WeatherForecastController
>
logger
)
{
_logger
=
logger
;
}
[
HttpGet
]
public
IEnumerable
<
WeatherForecast
>
Get
()
{
var
rng
=
new
Random
();
return
Enumerable
.
Range
(
1
,
5
).
Select
(
index
=>
new
WeatherForecast
{
Date
=
DateTime
.
Now
.
AddDays
(
index
),
TemperatureC
=
rng
.
Next
(-
20
,
55
),
Summary
=
Summaries
[
rng
.
Next
(
Summaries
.
Length
)]
})
.
ToArray
();
}
}
}
Aurora.Gateway/Program.cs
浏览文件 @
ce6e5187
...
...
@@ -20,7 +20,12 @@ namespace Aurora.Gateway
Host
.
CreateDefaultBuilder
(
args
)
.
ConfigureWebHostDefaults
(
webBuilder
=>
{
webBuilder
.
UseStartup
<
Startup
>();
webBuilder
.
ConfigureAppConfiguration
((
hostingContext
,
cfg
)
=>
{
cfg
.
AddJsonFile
(
"ocelot.json"
,
false
,
true
);
})
.
UseStartup
<
Startup
>();
});
}
}
Aurora.Gateway/Properties/launchSettings.json
浏览文件 @
ce6e5187
...
...
@@ -22,7 +22,7 @@
"dotnetRunMessages"
:
"true"
,
"launchBrowser"
:
true
,
"launchUrl"
:
"swagger"
,
"applicationUrl"
:
"http
s://localhost:5001;http://localhost:5
000"
,
"applicationUrl"
:
"http
://localhost:6
000"
,
"environmentVariables"
:
{
"ASPNETCORE_ENVIRONMENT"
:
"Development"
}
...
...
Aurora.Gateway/Startup.cs
浏览文件 @
ce6e5187
...
...
@@ -11,6 +11,8 @@ using Microsoft.Extensions.DependencyInjection;
using
Microsoft.Extensions.Hosting
;
using
Microsoft.Extensions.Logging
;
using
Microsoft.OpenApi.Models
;
using
Ocelot.DependencyInjection
;
using
Ocelot.Middleware
;
namespace
Aurora.Gateway
{
...
...
@@ -25,13 +27,14 @@ namespace Aurora.Gateway
// This method gets called by the runtime. Use this method to add services to the container.
public
void
ConfigureServices
(
IServiceCollection
services
)
{
{
services
.
AddControllers
();
services
.
AddSwaggerGen
(
c
=>
{
c
.
SwaggerDoc
(
"v1"
,
new
OpenApiInfo
{
Title
=
"Aurora.Gateway"
,
Version
=
"v1"
});
});
services
.
AddOcelot
(
Configuration
);
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
...
...
@@ -54,6 +57,9 @@ namespace Aurora.Gateway
{
endpoints
.
MapControllers
();
});
app
.
UseOcelot
().
Wait
();
}
}
}
Aurora.Gateway/WeatherForecast.cs
已删除
100644 → 0
浏览文件 @
6f300342
using
System
;
namespace
Aurora.Gateway
{
public
class
WeatherForecast
{
public
DateTime
Date
{
get
;
set
;
}
public
int
TemperatureC
{
get
;
set
;
}
public
int
TemperatureF
=>
32
+
(
int
)(
TemperatureC
/
0.5556
);
public
string
Summary
{
get
;
set
;
}
}
}
Aurora.Gateway/ocelot.json
0 → 100644
浏览文件 @
ce6e5187
{
"ReRoutes"
:
[
{
"UseServiceDiscovery"
:
true
,
"DownstreamPathTemplate"
:
"/"
,
//下游请求地址模板
"DownstreamScheme"
:
"http"
,
"ServiceName"
:
"Aurora.Core.ClientService"
,
"LoadBalancerOptions"
:
{
"Type"
:
"RoundRobin"
},
"UpstreamPathTemplate"
:
"/api"
,
//请求路路径模板
"UpstreamHttpMethod"
:
[
"Get"
,
"Post"
],
"ReRoutesCaseSensitive"
:
false
//
non
case
sensitive
}
],
"GlobalConfiguration"
:
{
"ServiceDiscoveryProvider"
:
{
"Host"
:
"localhost"
,
//
Consul
Service
IP
"Port"
:
8500
//
Consul
Service
Port
}
}
}
\ No newline at end of file
Aurora.HttpRepots/Aurora.HttpRepots.csproj
0 → 100644
浏览文件 @
ce6e5187
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="HttpReports.Dashboard" Version="2.5.14" />
<PackageReference Include="HttpReports.MySQL" Version="2.5.14" />
</ItemGroup>
</Project>
Aurora.HttpRepots/Program.cs
0 → 100644
浏览文件 @
ce6e5187
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
Microsoft.AspNetCore.Hosting
;
using
Microsoft.Extensions.Configuration
;
using
Microsoft.Extensions.Hosting
;
using
Microsoft.Extensions.Logging
;
namespace
Aurora.HttpRepots
{
public
class
Program
{
public
static
void
Main
(
string
[]
args
)
{
CreateHostBuilder
(
args
).
Build
().
Run
();
}
public
static
IHostBuilder
CreateHostBuilder
(
string
[]
args
)
=>
Host
.
CreateDefaultBuilder
(
args
)
.
ConfigureWebHostDefaults
(
webBuilder
=>
{
webBuilder
.
UseStartup
<
Startup
>();
});
}
}
Aurora.HttpRepots/Properties/launchSettings.json
0 → 100644
浏览文件 @
ce6e5187
{
"iisSettings"
:
{
"windowsAuthentication"
:
false
,
"anonymousAuthentication"
:
true
,
"iisExpress"
:
{
"applicationUrl"
:
"http://localhost:8605"
,
"sslPort"
:
44326
}
},
"profiles"
:
{
"IIS Express"
:
{
"commandName"
:
"IISExpress"
,
"launchBrowser"
:
true
,
"environmentVariables"
:
{
"ASPNETCORE_ENVIRONMENT"
:
"Development"
}
},
"Aurora.HttpRepots"
:
{
"commandName"
:
"Project"
,
"dotnetRunMessages"
:
"true"
,
"launchBrowser"
:
true
,
"applicationUrl"
:
"http://localhost:7000"
,
"environmentVariables"
:
{
"ASPNETCORE_ENVIRONMENT"
:
"Development"
}
}
}
}
Aurora.HttpRepots/Startup.cs
0 → 100644
浏览文件 @
ce6e5187
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
Microsoft.AspNetCore.Builder
;
using
Microsoft.AspNetCore.Hosting
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.Extensions.DependencyInjection
;
using
Microsoft.Extensions.Hosting
;
namespace
Aurora.HttpRepots
{
public
class
Startup
{
// This method gets called by the runtime. Use this method to add services to the container.
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public
void
ConfigureServices
(
IServiceCollection
services
)
{
services
.
AddHttpReportsDashboard
().
AddMySqlStorage
();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public
void
Configure
(
IApplicationBuilder
app
,
IWebHostEnvironment
env
)
{
if
(
env
.
IsDevelopment
())
{
app
.
UseDeveloperExceptionPage
();
}
app
.
UseRouting
();
app
.
UseEndpoints
(
endpoints
=>
{
endpoints
.
MapGet
(
"/hello"
,
async
context
=>
{
await
context
.
Response
.
WriteAsync
(
"Hello World!"
);
});
});
app
.
UseHttpReportsDashboard
();
}
}
}
Aurora.HttpRepots/appsettings.json
0 → 100644
浏览文件 @
ce6e5187
{
"Logging"
:
{
"LogLevel"
:
{
"Default"
:
"Information"
,
"Microsoft"
:
"Warning"
,
"Microsoft.Hosting.Lifetime"
:
"Information"
}
},
"HttpReportsDashboard"
:
{
"ExpireDay"
:
3
,
"Storage"
:
{
//
"ConnectionString"
:
"DataBase=HttpReports;Data Source=localhost;User Id=root;Password=123456;"
,
"ConnectionString"
:
"Server=xx.xx.xx.xx; Port=3306;User Id=httpreportsuser;Password=httpreports123456;Database=HttpReports;Allow User Variables=True"
,
"DeferSecond"
:
10
,
"DeferThreshold"
:
100
},
"Check"
:
{
"Mode"
:
"Self"
,
"Switch"
:
true
,
"Endpoint"
:
""
,
"Range"
:
"500,2000"
},
"Mail"
:
{
"Server"
:
"smtp.163.com"
,
"Port"
:
465
,
"Account"
:
"HttpReports@qq.com"
,
"Password"
:
"*******"
,
"EnableSsL"
:
true
,
"Switch"
:
true
}
},
"AllowedHosts"
:
"*"
}
Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/AppBuilderExtensions.cs
0 → 100644
浏览文件 @
ce6e5187
using
System
;
using
Consul
;
using
Microsoft.AspNetCore.Builder
;
using
Microsoft.Extensions.Hosting
;
namespace
Aurora.Core.Api
{
public
class
ServiceEntity
{
public
string
IP
{
get
;
set
;
}
public
int
Port
{
get
;
set
;
}
public
string
ServiceName
{
get
;
set
;
}
public
string
ConsulIP
{
get
;
set
;
}
public
int
ConsulPort
{
get
;
set
;
}
}
public
static
class
AppBuilderExtensions
{
public
static
IApplicationBuilder
RegisterConsul
(
this
IApplicationBuilder
app
,
IHostApplicationLifetime
lifetime
,
ServiceEntity
serviceEntity
)
{
var
consulClient
=
new
ConsulClient
(
x
=>
x
.
Address
=
new
Uri
(
$"http://
{
serviceEntity
.
ConsulIP
}
:
{
serviceEntity
.
ConsulPort
}
"
));
//请求注册的 Consul 地址
var
httpCheck
=
new
AgentServiceCheck
()
{
DeregisterCriticalServiceAfter
=
TimeSpan
.
FromSeconds
(
5
),
//服务启动多久后注册
Interval
=
TimeSpan
.
FromSeconds
(
10
),
//健康检查时间间隔,或者称为心跳间隔
HTTP
=
$"http://
{
serviceEntity
.
IP
}
:
{
serviceEntity
.
Port
}
/api/health"
,
//健康检查地址
Timeout
=
TimeSpan
.
FromSeconds
(
5
)
};
// Register service with consul
var
registration
=
new
AgentServiceRegistration
()
{
Checks
=
new
[]
{
httpCheck
},
ID
=
Guid
.
NewGuid
().
ToString
(),
Name
=
serviceEntity
.
ServiceName
,
Address
=
serviceEntity
.
IP
,
Port
=
serviceEntity
.
Port
,
Tags
=
new
[]
{
$"urlprefix-/
{
serviceEntity
.
ServiceName
}
"
}
//添加 urlprefix-/servicename 格式的 tag 标签,以便 Fabio 识别
};
consulClient
.
Agent
.
ServiceRegister
(
registration
).
Wait
();
//服务启动时注册,内部实现其实就是使用 Consul API 进行注册(HttpClient发起)
lifetime
.
ApplicationStopping
.
Register
(()
=>
{
consulClient
.
Agent
.
ServiceDeregister
(
registration
.
ID
).
Wait
();
//服务停止时取消注册
});
return
app
;
}
}
}
\ No newline at end of file
Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/Aurora.Core.Api.csproj
浏览文件 @
ce6e5187
...
...
@@ -7,9 +7,12 @@
<ItemGroup>
<PackageReference Include="Automapper" Version="10.1.1" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.1.1" />
<PackageReference Include="Consul" Version="1.6.10.1" />
<PackageReference Include="HttpReports" Version="2.5.14" />
<PackageReference Include="HttpReports.Transport.Http" Version="2.5.14" />
<PackageReference Include="MySql.EntityFrameworkCore" Version="5.0.3.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.15" />
<PackageReference Include="MySql.Data.EntityFrameworkCore" Version="8.0.22" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.7" />
</ItemGroup>
<ItemGroup>
...
...
Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/Controllers/HealthController .cs
0 → 100644
浏览文件 @
ce6e5187
using
Microsoft.AspNetCore.Mvc
;
namespace
Aurora.Core.Api.Controllers
{
[
Produces
(
"application/json"
)]
[
Route
(
"api/Health"
)]
public
class
HealthController
:
Controller
{
[
HttpGet
]
public
IActionResult
Get
()
=>
Ok
(
"ok"
);
}
}
Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/Startup.cs
浏览文件 @
ce6e5187
...
...
@@ -31,7 +31,7 @@ namespace Aurora.Core.Api
// This method gets called by the runtime. Use this method to add services to the container.
public
void
ConfigureServices
(
IServiceCollection
services
)
{
services
.
AddHttpReports
().
AddHttpTransport
();
services
.
AddControllers
();
services
.
AddSwaggerGen
(
c
=>
{
...
...
@@ -44,7 +44,7 @@ namespace Aurora.Core.Api
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public
void
Configure
(
IApplicationBuilder
app
,
IWebHostEnvironment
env
)
public
void
Configure
(
IApplicationBuilder
app
,
IWebHostEnvironment
env
,
IHostApplicationLifetime
lifetime
)
{
if
(
env
.
IsDevelopment
())
{
...
...
@@ -52,6 +52,7 @@ namespace Aurora.Core.Api
app
.
UseSwagger
();
app
.
UseSwaggerUI
(
c
=>
c
.
SwaggerEndpoint
(
"/swagger/v1/swagger.json"
,
"Aurora.Core.Api v1"
));
}
app
.
UseHttpReports
();
app
.
UseHttpsRedirection
();
...
...
@@ -63,6 +64,16 @@ namespace Aurora.Core.Api
{
endpoints
.
MapControllers
();
});
// register this service
ServiceEntity
serviceEntity
=
new
ServiceEntity
{
// IP = NetworkHelper.LocalIPAddress,
Port
=
Convert
.
ToInt32
(
Configuration
[
"Service:Port"
]),
ServiceName
=
Configuration
[
"Service:Name"
],
ConsulIP
=
Configuration
[
"Consul:IP"
],
ConsulPort
=
Convert
.
ToInt32
(
Configuration
[
"Consul:Port"
])
};
app
.
RegisterConsul
(
lifetime
,
serviceEntity
);
}
}
}
Aurora.Micorservices/Aurora.Core/Aurora.Core.Api/appsettings.json
浏览文件 @
ce6e5187
...
...
@@ -6,6 +6,14 @@
"Microsoft.Hosting.Lifetime"
:
"Information"
}
},
"Service"
:
{
"Name"
:
"Aurora.Core.ClientService"
,
"Port"
:
"5000"
},
"Consul"
:
{
"IP"
:
"localhost"
,
"Port"
:
"8500"
},
"AllowedHosts"
:
"*"
,
"ConnectionStrings"
:
{
"Enable"
:
"MySql"
,
...
...
@@ -20,5 +28,20 @@
"SqlServer"
:
"Data Source=192.168.1.139;Initial Catalog=PTS2;User ID=sa;Password=;Encrypt=False;TrustServerCertificate=False;Pooling=true;max Pool Size=50;min Pool Size=1;MultipleActiveResultSets=True"
,
"PostgreSql"
:
"Server=localhost;Database=Simon_blog;User ID=xxxxxx;Password=666"
,
"Sqlite"
:
"Data Source=D:/xxx.db;"
},
"HttpReports"
:
{
"Transport"
:
{
"CollectorAddress"
:
"http://localhost:7000/"
,
"DeferSecond"
:
10
,
"DeferThreshold"
:
100
},
"Server"
:
"http://localhost:5000"
,
"Service"
:
"User"
,
"Switch"
:
true
,
"RequestFilter"
:
[
"/api/health/*"
,
"/HttpReports*"
],
"WithRequest"
:
true
,
"WithResponse"
:
true
,
"WithCookie"
:
true
,
"WithHeader"
:
true
}
}
\ No newline at end of file
Aurora.Micorservices/Aurora.Core/Aurora.Core.EntityFramework/Aurora.Core.EntityFramework.csproj
浏览文件 @
ce6e5187
...
...
@@ -6,14 +6,14 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="
3.1.15
" />
<PackageReference Include="MySql.
Data.EntityFrameworkCore" Version="8.0.22
" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="
3.1.15
">
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="
5.0.7
" />
<PackageReference Include="MySql.
EntityFrameworkCore" Version="5.0.3.1
" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="
5.0.7
">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="
3.1.15
" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="
5.0.7
" />
</ItemGroup>
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
...
...
Aurora.Micorservices/Aurora.Core/Aurora.Core.Service/Aurora.Core.Service.csproj
浏览文件 @
ce6e5187
...
...
@@ -7,7 +7,7 @@
<ItemGroup>
<PackageReference Include="Automapper" Version="10.1.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="
3.1.15
" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="
5.0.7
" />
</ItemGroup>
<PropertyGroup>
...
...
aurora.sln
浏览文件 @
ce6e5187
...
...
@@ -3,41 +3,45 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.6.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Aurora.Auth", "Aurora.Auth\Aurora.Auth.csproj", "{A72E1001-C37D-4A6F-9A8C-FE75FF130657}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Aurora.Auth", "Aurora.Auth\Aurora.Auth.csproj", "{A72E1001-C37D-4A6F-9A8C-FE75FF130657}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Aurora.WebHost", "Aurora.WebHost\Aurora.WebHost.csproj", "{08EE3E88-A3C6-48E8-9068-D99AA7E77048}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Aurora.WebHost", "Aurora.WebHost\Aurora.WebHost.csproj", "{08EE3E88-A3C6-48E8-9068-D99AA7E77048}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Aurora.Gateway", "Aurora.Gateway\Aurora.Gateway.csproj", "{E7850F7D-F911-4D69-B5A0-CFE28EA39FBC}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Aurora.Gateway", "Aurora.Gateway\Aurora.Gateway.csproj", "{E7850F7D-F911-4D69-B5A0-CFE28EA39FBC}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Aurora.Micorservices", "Aurora.Micorservices", "{584A022C-ACAE-47E9-9D53-55FF40DC664D}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Aurora.Core", "Aurora.Core", "{DE864DFA-7032-4A52-9B73-7DA794FAE2EA}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Aurora.Core.Api", "Aurora.Micorservices\Aurora.Core\Aurora.Core.Api\Aurora.Core.Api.csproj", "{73E41DAF-D5DE-4702-AB2E-F93CAE277EF5}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Aurora.Core.Api", "Aurora.Micorservices\Aurora.Core\Aurora.Core.Api\Aurora.Core.Api.csproj", "{73E41DAF-D5DE-4702-AB2E-F93CAE277EF5}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Aurora.Core.Domain", "Aurora.Micorservices\Aurora.Core\Aurora.Core.Domain\Aurora.Core.Domain.csproj", "{F57C40C2-7F48-4360-8AAA-DD50B6518C84}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Aurora.Core.Domain", "Aurora.Micorservices\Aurora.Core\Aurora.Core.Domain\Aurora.Core.Domain.csproj", "{F57C40C2-7F48-4360-8AAA-DD50B6518C84}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Aurora.Core.IService", "Aurora.Micorservices\Aurora.Core\Aurora.Core.IService\Aurora.Core.IService.csproj", "{D4270B1E-D5DD-40D8-9281-54E2EBD38FB7}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Aurora.Core.IService", "Aurora.Micorservices\Aurora.Core\Aurora.Core.IService\Aurora.Core.IService.csproj", "{D4270B1E-D5DD-40D8-9281-54E2EBD38FB7}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Aurora.Core.EntityFramework", "Aurora.Micorservices\Aurora.Core\Aurora.Core.EntityFramework\Aurora.Core.EntityFramework.csproj", "{8E22664E-C22C-46E0-B970-056C24BEC66F}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Aurora.Core.EntityFramework", "Aurora.Micorservices\Aurora.Core\Aurora.Core.EntityFramework\Aurora.Core.EntityFramework.csproj", "{8E22664E-C22C-46E0-B970-056C24BEC66F}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Aurora.Core.Service", "Aurora.Micorservices\Aurora.Core\Aurora.Core.Service\Aurora.Core.Service.csproj", "{E500647A-0385-49BF-BE01-3942C8C554A9}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Aurora.Core.Service", "Aurora.Micorservices\Aurora.Core\Aurora.Core.Service\Aurora.Core.Service.csproj", "{E500647A-0385-49BF-BE01-3942C8C554A9}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Aurora.Infrastructure", "Aurora.Infrastructure\Aurora.Infrastructure.csproj", "{46336F7C-61B1-481B-9860-1868249667B3}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Aurora.Infrastructure", "Aurora.Infrastructure\Aurora.Infrastructure.csproj", "{46336F7C-61B1-481B-9860-1868249667B3}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Aurora.Common", "Aurora.Common\Aurora.Common.csproj", "{399C1F2A-FE91-4FA8-B1D4-5E077689EED4}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Aurora.Common", "Aurora.Common\Aurora.Common.csproj", "{399C1F2A-FE91-4FA8-B1D4-5E077689EED4}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Aurora.Storage", "Aurora.Micorservices\Aurora.Storage\Aurora.Storage.csproj", "{09AC6731-56CC-4075-B437-78D8D668D481}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Aurora.Storage", "Aurora.Micorservices\Aurora.Storage\Aurora.Storage.csproj", "{09AC6731-56CC-4075-B437-78D8D668D481}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Aurora.Tenant", "Aurora.Tenant", "{0CD896F9-6F85-438F-A20C-0E10D6F7EF27}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Aurora.Tenant.Api", "Aurora.Micorservices\Aurora.Tenant\Aurora.Tenant.Api\Aurora.Tenant.Api.csproj", "{C60141C8-0CD0-4ED5-AB10-C0B235F9DC74}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Aurora.Tenant.Api", "Aurora.Micorservices\Aurora.Tenant\Aurora.Tenant.Api\Aurora.Tenant.Api.csproj", "{C60141C8-0CD0-4ED5-AB10-C0B235F9DC74}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Aurora.Tenant.Domain", "Aurora.Micorservices\Aurora.Tenant\Aurora.Tenant.Domain\Aurora.Tenant.Domain.csproj", "{06951545-AF8E-4259-AD5B-FD63EC460271}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Aurora.Tenant.Domain", "Aurora.Micorservices\Aurora.Tenant\Aurora.Tenant.Domain\Aurora.Tenant.Domain.csproj", "{06951545-AF8E-4259-AD5B-FD63EC460271}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "Aurora.Tenant.EntityFramework", "Aurora.Micorservices\Aurora.Tenant\Aurora.Tenant.EntityFramework\Aurora.Tenant.EntityFramework.csproj", "{788035D4-431F-49D1-820B-B7D00A0910C3}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "Aurora.Tenant.EntityFramework", "Aurora.Micorservices\Aurora.Tenant\Aurora.Tenant.EntityFramework\Aurora.Tenant.EntityFramework.csproj", "{788035D4-431F-49D1-820B-B7D00A0910C3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aurora.Tenant.IService", "Aurora.Micorservices\Aurora.Tenant\Aurora.Tenant.IService\Aurora.Tenant.IService.csproj", "{BC10AC86-DDF1-4C0F-B450-DF36BA97F0E1}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aurora.Tenant.IService", "Aurora.Micorservices\Aurora.Tenant\Aurora.Tenant.IService\Aurora.Tenant.IService.csproj", "{BC10AC86-DDF1-4C0F-B450-DF36BA97F0E1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aurora.AdminHost", "Aurora.AdminHost\Aurora.AdminHost.csproj", "{23BC1840-B8C0-458D-A88A-22DFF337D74F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aurora.HttpRepots", "Aurora.HttpRepots\Aurora.HttpRepots.csproj", "{A3CD4093-20E3-4801-8879-EBDDDEF62F5E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
...
...
@@ -48,9 +52,6 @@ Global
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A72E1001-C37D-4A6F-9A8C-FE75FF130657}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A72E1001-C37D-4A6F-9A8C-FE75FF130657}.Debug|Any CPU.Build.0 = Debug|Any CPU
...
...
@@ -64,18 +65,6 @@ Global
{A72E1001-C37D-4A6F-9A8C-FE75FF130657}.Release|x64.Build.0 = Release|Any CPU
{A72E1001-C37D-4A6F-9A8C-FE75FF130657}.Release|x86.ActiveCfg = Release|Any CPU
{A72E1001-C37D-4A6F-9A8C-FE75FF130657}.Release|x86.Build.0 = Release|Any CPU
{8FA15697-05E3-4C77-B5F5-5F9975DE6435}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8FA15697-05E3-4C77-B5F5-5F9975DE6435}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8FA15697-05E3-4C77-B5F5-5F9975DE6435}.Debug|x64.ActiveCfg = Debug|Any CPU
{8FA15697-05E3-4C77-B5F5-5F9975DE6435}.Debug|x64.Build.0 = Debug|Any CPU
{8FA15697-05E3-4C77-B5F5-5F9975DE6435}.Debug|x86.ActiveCfg = Debug|Any CPU
{8FA15697-05E3-4C77-B5F5-5F9975DE6435}.Debug|x86.Build.0 = Debug|Any CPU
{8FA15697-05E3-4C77-B5F5-5F9975DE6435}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8FA15697-05E3-4C77-B5F5-5F9975DE6435}.Release|Any CPU.Build.0 = Release|Any CPU
{8FA15697-05E3-4C77-B5F5-5F9975DE6435}.Release|x64.ActiveCfg = Release|Any CPU
{8FA15697-05E3-4C77-B5F5-5F9975DE6435}.Release|x64.Build.0 = Release|Any CPU
{8FA15697-05E3-4C77-B5F5-5F9975DE6435}.Release|x86.ActiveCfg = Release|Any CPU
{8FA15697-05E3-4C77-B5F5-5F9975DE6435}.Release|x86.Build.0 = Release|Any CPU
{08EE3E88-A3C6-48E8-9068-D99AA7E77048}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{08EE3E88-A3C6-48E8-9068-D99AA7E77048}.Debug|Any CPU.Build.0 = Debug|Any CPU
{08EE3E88-A3C6-48E8-9068-D99AA7E77048}.Debug|x64.ActiveCfg = Debug|Any CPU
...
...
@@ -244,6 +233,33 @@ Global
{BC10AC86-DDF1-4C0F-B450-DF36BA97F0E1}.Release|x64.Build.0 = Release|Any CPU
{BC10AC86-DDF1-4C0F-B450-DF36BA97F0E1}.Release|x86.ActiveCfg = Release|Any CPU
{BC10AC86-DDF1-4C0F-B450-DF36BA97F0E1}.Release|x86.Build.0 = Release|Any CPU
{23BC1840-B8C0-458D-A88A-22DFF337D74F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{23BC1840-B8C0-458D-A88A-22DFF337D74F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{23BC1840-B8C0-458D-A88A-22DFF337D74F}.Debug|x64.ActiveCfg = Debug|Any CPU
{23BC1840-B8C0-458D-A88A-22DFF337D74F}.Debug|x64.Build.0 = Debug|Any CPU
{23BC1840-B8C0-458D-A88A-22DFF337D74F}.Debug|x86.ActiveCfg = Debug|Any CPU
{23BC1840-B8C0-458D-A88A-22DFF337D74F}.Debug|x86.Build.0 = Debug|Any CPU
{23BC1840-B8C0-458D-A88A-22DFF337D74F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{23BC1840-B8C0-458D-A88A-22DFF337D74F}.Release|Any CPU.Build.0 = Release|Any CPU
{23BC1840-B8C0-458D-A88A-22DFF337D74F}.Release|x64.ActiveCfg = Release|Any CPU
{23BC1840-B8C0-458D-A88A-22DFF337D74F}.Release|x64.Build.0 = Release|Any CPU
{23BC1840-B8C0-458D-A88A-22DFF337D74F}.Release|x86.ActiveCfg = Release|Any CPU
{23BC1840-B8C0-458D-A88A-22DFF337D74F}.Release|x86.Build.0 = Release|Any CPU
{A3CD4093-20E3-4801-8879-EBDDDEF62F5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A3CD4093-20E3-4801-8879-EBDDDEF62F5E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A3CD4093-20E3-4801-8879-EBDDDEF62F5E}.Debug|x64.ActiveCfg = Debug|Any CPU
{A3CD4093-20E3-4801-8879-EBDDDEF62F5E}.Debug|x64.Build.0 = Debug|Any CPU
{A3CD4093-20E3-4801-8879-EBDDDEF62F5E}.Debug|x86.ActiveCfg = Debug|Any CPU
{A3CD4093-20E3-4801-8879-EBDDDEF62F5E}.Debug|x86.Build.0 = Debug|Any CPU
{A3CD4093-20E3-4801-8879-EBDDDEF62F5E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A3CD4093-20E3-4801-8879-EBDDDEF62F5E}.Release|Any CPU.Build.0 = Release|Any CPU
{A3CD4093-20E3-4801-8879-EBDDDEF62F5E}.Release|x64.ActiveCfg = Release|Any CPU
{A3CD4093-20E3-4801-8879-EBDDDEF62F5E}.Release|x64.Build.0 = Release|Any CPU
{A3CD4093-20E3-4801-8879-EBDDDEF62F5E}.Release|x86.ActiveCfg = Release|Any CPU
{A3CD4093-20E3-4801-8879-EBDDDEF62F5E}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{DE864DFA-7032-4A52-9B73-7DA794FAE2EA} = {584A022C-ACAE-47E9-9D53-55FF40DC664D}
...
...
@@ -259,4 +275,7 @@ Global
{788035D4-431F-49D1-820B-B7D00A0910C3} = {0CD896F9-6F85-438F-A20C-0E10D6F7EF27}
{BC10AC86-DDF1-4C0F-B450-DF36BA97F0E1} = {0CD896F9-6F85-438F-A20C-0E10D6F7EF27}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B8B3803E-FF59-4728-9EC8-B9C62218C26E}
EndGlobalSection
EndGlobal
blog-list.md
浏览文件 @
ce6e5187
...
...
@@ -4,4 +4,7 @@
*
[
EFCore之增删改查
](
https://mp.weixin.qq.com/s/Pzqr6a4bfTgFoB4_40JxrA
)
*
[
构建属于你自己的dapr服务发现
](
https://mp.weixin.qq.com/s/XonGIPMdtCQ3cCLkGrCYQQ
)
*
[
BootstrapBlazor
](
https://www.blazor.zone/menus
)
*
[
3分钟就会系列,使用Ocelot+Consul搭建微服务吧!
](
https://www.cnblogs.com/ZaraNet/p/10152879.html
)
*
[
.NET Core微服务之基于Consul实现服务治理
](
https://www.cnblogs.com/edisonchou/p/9124985.html
)
*
[
8分钟学会Consul集群搭建及微服务概念
](
https://www.cnblogs.com/ZaraNet/p/10123291.html
)
*
[
httpreports 文档
](
https://www.yuque.com/httpreports/docs/azyxwc#KHHIP
)