Skip to content

Commit

Permalink
升级组件
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Nov 2, 2023
1 parent 49f766b commit 0deee08
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CubeDemo/CubeDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.13" />
<PackageReference Include="NewLife.Stardust.Extensions" Version="2.9.2023.1001" />
<PackageReference Include="NewLife.Stardust.Extensions" Version="2.9.2023.1102" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions CubeDemoNC/CubeDemoNC.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="7.0.13" />
<PackageReference Include="NewLife.Redis.Extensions" Version="5.5.2023.1001" />
<PackageReference Include="NewLife.Stardust.Extensions" Version="2.9.2023.1001" />
<PackageReference Include="NewLife.Redis.Extensions" Version="5.5.2023.1102" />
<PackageReference Include="NewLife.Stardust.Extensions" Version="2.9.2023.1102" />
</ItemGroup>

<ItemGroup>
Expand Down
7 changes: 4 additions & 3 deletions CubeDemoNC/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ public void ConfigureServices(IServiceCollection services)

var config = star.GetConfig();
var cacheConn = config["RedisCache"];
Redis redis = null;
if (!cacheConn.IsNullOrEmpty())
{
var redis = new FullRedis { Log = XTrace.Log, Tracer = star.Tracer };
redis = new FullRedis { Log = XTrace.Log, Tracer = star.Tracer };
redis.Init(cacheConn);
services.AddSingleton(redis);
}
Expand All @@ -47,9 +48,9 @@ public void ConfigureServices(IServiceCollection services)
services.AddCube();
//services.AddBlazor();

if (!cacheConn.IsNullOrEmpty())
if (redis != null)
{
services.AddDataProtection().PersistKeysToRedis();
services.AddDataProtection().PersistKeysToRedis(redis);
}
}

Expand Down
2 changes: 1 addition & 1 deletion CubeSSO/CubeSSO.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<ItemGroup>
<PackageReference Include="NewLife.Core" Version="10.6.2023.1101" />
<PackageReference Include="NewLife.Stardust.Extensions" Version="2.9.2023.1001" />
<PackageReference Include="NewLife.Stardust.Extensions" Version="2.9.2023.1102" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions NewLife.Cube/NewLife.Cube.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="NewLife.Core" Version="10.6.2023.1101" />
<PackageReference Include="NewLife.IP" Version="2.1.2023.704-beta0221" />
<PackageReference Include="NewLife.Redis.Extensions" Version="5.5.2023.1001" />
<PackageReference Include="NewLife.Stardust" Version="2.9.2023.1001" />
<PackageReference Include="NewLife.IP" Version="2.1.2023.1101" />
<PackageReference Include="NewLife.Redis.Extensions" Version="5.5.2023.1102" />
<PackageReference Include="NewLife.Stardust" Version="2.9.2023.1102" />
<PackageReference Include="NewLife.XCode" Version="11.10.2023.1101" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions NewLife.CubeNC/NewLife.CubeNC.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="NewLife.Core" Version="10.6.2023.1101" />
<PackageReference Include="NewLife.IP" Version="2.1.2023.704-beta0221" />
<PackageReference Include="NewLife.Stardust" Version="2.9.2023.1001" />
<PackageReference Include="NewLife.IP" Version="2.1.2023.1101" />
<PackageReference Include="NewLife.Stardust" Version="2.9.2023.1102" />
<PackageReference Include="NewLife.XCode" Version="11.10.2023.1101" />
</ItemGroup>

Expand Down

0 comments on commit 0deee08

Please sign in to comment.