Skip to content

Commit

Permalink
[ODS-6454] Timeout connecting to EdFi_Security Database in v6.2 - 5x (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
axelmarquezh authored Sep 16, 2024
1 parent 1489468 commit daa9bb1
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Application/EdFi.Ods.Api/EdFi.Ods.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<PackageReference Include="AspNetCore.HealthChecks.SqlServer" Version="8.0.2" />
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="5.4.476" />
<PackageReference Include="EdFi.Suite3.Common" Version="5.4.459" />
<PackageReference Include="EdFi.Suite3.Security.DataAccess" Version="5.4.454" />
<PackageReference Include="EdFi.Suite3.Security.DataAccess" Version="5.4.630" />
<PackageReference Include="FluentValidation" Version="11.9.2" />
<PackageReference Include="Iesi.Collections" Version="4.1.1" />
<PackageReference Include="log4net" Version="2.0.17" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<ItemGroup>
<PackageReference Include="EdFi.Suite3.Common" Version="5.4.459" />
<PackageReference Include="Autofac" Version="8.0.0" />
<PackageReference Include="EdFi.Suite3.Security.DataAccess" Version="5.4.454" />
<PackageReference Include="EdFi.Suite3.Security.DataAccess" Version="5.4.630" />
<PackageReference Include="FakeItEasy" Version="8.3.0" />
<PackageReference Include="Iesi.Collections" Version="4.1.1" />
<PackageReference Include="log4net" Version="2.0.17" />
Expand Down
2 changes: 1 addition & 1 deletion Application/EdFi.Ods.Tests/EdFi.Ods.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="5.4.476" />
<PackageReference Include="EdFi.Suite3.Security.DataAccess" Version="5.4.454" />
<PackageReference Include="EdFi.Suite3.Security.DataAccess" Version="5.4.630" />
<PackageReference Include="NHibernate" Version="5.5.2" />
<PackageReference Include="Autofac.Extras.FakeItEasy" Version="7.0.0" />
<PackageReference Include="AutoMapper" Version="13.0.1" />
Expand Down
5 changes: 3 additions & 2 deletions Application/EdFi.Security.DataAccess/Utils/ResettableLazy.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Threading;

namespace EdFi.Security.DataAccess.Utils
{
Expand All @@ -13,12 +14,12 @@ public class ResettableLazy<T>
public ResettableLazy(Func<T> valueFactory)
{
_valueFactory = valueFactory;
_lazy = new Lazy<T>(_valueFactory);
_lazy = new Lazy<T>(_valueFactory, LazyThreadSafetyMode.PublicationOnly);
}

public void Reset()
{
_lazy = new Lazy<T>(_valueFactory);
_lazy = new Lazy<T>(_valueFactory, LazyThreadSafetyMode.PublicationOnly);
}
}
}
8 changes: 8 additions & 0 deletions Utilities/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project>
<PropertyGroup>
<NuGetAudit>true</NuGetAudit>
<NuGetAuditLevel>high</NuGetAuditLevel>
<NuGetAuditMode>direct</NuGetAuditMode>
<Copyright>Copyright © $([System.DateTime]::Now.ToString(`yyyy`)) Ed-Fi Alliance, LLC and Contributors</Copyright>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="5.4.476" />
<PackageReference Include="EdFi.Suite3.Security.DataAccess" Version="5.4.454" />
<PackageReference Include="EdFi.Suite3.Security.DataAccess" Version="5.4.630" />
<PackageReference Include="NHibernate" Version="5.5.2" />
<PackageReference Include="ApprovalTests" Version="6.0.0" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="9.0.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="5.4.476" />
<PackageReference Include="EdFi.Suite3.Security.DataAccess" Version="5.4.454" />
<PackageReference Include="EdFi.Suite3.Security.DataAccess" Version="5.4.630" />
<PackageReference Include="NHibernate" Version="5.5.2" />
<PackageReference Include="ApprovalTests" Version="6.0.0" />
<PackageReference Include="ApprovalUtilities" Version="6.0.0" />
Expand Down

0 comments on commit daa9bb1

Please sign in to comment.