Skip to content

Commit c5ed6f8

Browse files
author
DwGoing
committed
🔧 build: 更新依赖
1 parent ce47bdf commit c5ed6f8

File tree

8 files changed

+48
-41
lines changed

8 files changed

+48
-41
lines changed

example/CoreExample/Program.cs

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,38 +22,29 @@ class A
2222

2323
static async Task Main(string[] args)
2424
{
25-
var s = DateTime.Parse("2020.01.01");
26-
var g = new SnowflakeGenerator(0, s);
27-
while (true)
25+
var host = new ServiceHost();
26+
host.AddJsonConfiguration("Config.json", reloadOnChange: true);
27+
host.ConfigureLogging(builder => builder.UserNLog());
28+
host.ConfigureContainer(builder =>
2829
{
29-
var i = g.GenerateId();
30-
var x = SnowflakeGenerator.DecodeId(i, s);
31-
Console.WriteLine(i);
32-
}
33-
34-
// var host = new ServiceHost();
35-
// host.AddJsonConfiguration("Config.json", reloadOnChange: true);
36-
// host.ConfigureLogging(builder => builder.UserNLog());
37-
// host.ConfigureContainer(builder =>
38-
// {
39-
// builder.Register(c => new LoggerInterceptor(invocation => (
40-
// $"{invocation.TargetType.Name}InvokeLog",
41-
// LogLevel.Debug,
42-
// "\n========================================\n"
43-
// + $"Method:\t{invocation.Method}\n"
44-
// + $"Args:\t{string.Join('|', invocation.Arguments)}\n"
45-
// + $"Return:\t{invocation.ReturnValue}\n"
46-
// + "========================================"
47-
// )));
48-
// builder.RegisterType<A>().As<I>().EnableInterfaceInterceptors();
49-
// builder.RegisterType<B>().As<I>().EnableInterfaceInterceptors();
50-
// });
51-
// host.OnHostStarted += provider =>
52-
// {
53-
// ServiceHost.ParseConfiguration<string>("ConnectionString");
54-
// foreach (var item in provider.GetServices<I>()) item.Do(5, 6);
55-
// };
56-
// await host.RunAsync();
30+
builder.Register(c => new LoggerInterceptor(invocation => (
31+
$"{invocation.TargetType.Name}InvokeLog",
32+
LogLevel.Debug,
33+
"\n========================================\n"
34+
+ $"Method:\t{invocation.Method}\n"
35+
+ $"Args:\t{string.Join('|', invocation.Arguments)}\n"
36+
+ $"Return:\t{invocation.ReturnValue}\n"
37+
+ "========================================"
38+
)));
39+
builder.RegisterType<A>().As<I>().EnableInterfaceInterceptors();
40+
builder.RegisterType<B>().As<I>().EnableInterfaceInterceptors();
41+
});
42+
host.OnHostStarted += provider =>
43+
{
44+
ServiceHost.ParseConfiguration<string>("ConnectionString");
45+
foreach (var item in provider.GetServices<I>()) item.Do(5, 6);
46+
};
47+
await host.RunAsync();
5748
}
5849
}
5950

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"iisSettings": {
3+
"windowsAuthentication": false,
4+
"anonymousAuthentication": true
5+
},
6+
"profiles": {
7+
"WebExample": {
8+
"commandName": "Project",
9+
"launchBrowser": true,
10+
"applicationUrl": "http://localhost:7076",
11+
"environmentVariables": {
12+
"ASPNETCORE_ENVIRONMENT": "Development"
13+
}
14+
}
15+
}
16+
}

example/WebExample/WebExample.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<ProjectReference Include="..\..\src\DwFramework.Web\DwFramework.Web.csproj" />
99
</ItemGroup>
1010
<ItemGroup>
11-
<PackageReference Include="AntDesign" Version="0.9.2" />
12-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.1.5" />
11+
<PackageReference Include="AntDesign" Version="0.9.4" />
12+
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.1" />
1313
</ItemGroup>
1414
<ItemGroup>
1515
<None Update="NLog.config">

src/DwFramework.Core/DwFramework.Core.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<TargetFramework>net5.0</TargetFramework>
5-
<Version>5.1.1.0</Version>
5+
<Version>5.1.2.0</Version>
66
<Authors>DwGoing</Authors>
77
<Description>DwFramework 核心库</Description>
88
<PackageProjectUrl>https://github.com/Dwgoing/DwFramework</PackageProjectUrl>
@@ -14,7 +14,7 @@
1414
<PackageReference Include="Microsoft.Extensions.Configuration.Xml" Version="5.0.0" />
1515
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="5.0.0" />
1616
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="7.1.0" />
17-
<PackageReference Include="NLog.Extensions.Logging" Version="1.7.3" />
17+
<PackageReference Include="NLog.Extensions.Logging" Version="1.7.4" />
1818
<PackageReference Include="Autofac.Extras.DynamicProxy" Version="6.0.0" />
1919
<PackageReference Include="RSAExtensions" Version="1.0.3" />
2020
<PackageReference Include="K4os.Compression.LZ4.Streams" Version="1.2.12" />

src/DwFramework.Quartz/DwFramework.Quartz.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<TargetFramework>net5.0</TargetFramework>
5-
<Version>5.1.1.0</Version>
5+
<Version>5.1.2.0</Version>
66
<Authors>DwGoing</Authors>
77
<Description>DwFramework Quartz封装库</Description>
88
<PackageProjectUrl>https://github.com/Dwgoing/DwFramework</PackageProjectUrl>

src/DwFramework.RabbitMQ/DwFramework.RabbitMQ.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<TargetFramework>net5.0</TargetFramework>
5-
<Version>5.1.1.0</Version>
5+
<Version>5.1.2.0</Version>
66
<Authors>DwGoing</Authors>
77
<Description>DwFramework RabbitMQ封装库</Description>
88
<PackageProjectUrl>https://github.com/Dwgoing/DwFramework</PackageProjectUrl>

src/DwFramework.SqlSugar/DwFramework.SqlSugar.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<TargetFramework>net5.0</TargetFramework>
5-
<Version>5.1.1.0</Version>
5+
<Version>5.1.2.0</Version>
66
<Authors>DwGoing</Authors>
77
<Description>DwFramework SqlSugar封装库</Description>
88
<PackageProjectUrl>https://github.com/Dwgoing/DwFramework</PackageProjectUrl>
@@ -12,6 +12,6 @@
1212
</ItemGroup>
1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="5.0.0" />
15-
<PackageReference Include="sqlSugarCore" Version="5.0.3.8" />
15+
<PackageReference Include="sqlSugarCore" Version="5.0.4" />
1616
</ItemGroup>
1717
</Project>

src/DwFramework.Web/DwFramework.Web.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<TargetFramework>net5.0</TargetFramework>
5-
<Version>5.1.1.0</Version>
5+
<Version>5.1.2.0</Version>
66
<Authors>DwGoing</Authors>
77
<Description>DwFramework 网络库</Description>
88
<PackageProjectUrl>https://github.com/Dwgoing/DwFramework</PackageProjectUrl>
@@ -22,7 +22,7 @@
2222
<PackageReference Include="protobuf-net.Grpc.AspNetCore.Reflection" Version="1.0.152" />
2323
<PackageReference Include="System.ServiceModel.Primitives" Version="4.8.1" />
2424
<PackageReference Include="Microsoft.AspNetCore.WebSockets" Version="2.2.1" />
25-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="5.0.9" />
25+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="5.0.10" />
2626
<PackageReference Include="Consul" Version="1.6.10.3" />
2727
</ItemGroup>
2828
</Project>

0 commit comments

Comments
 (0)