Skip to content

Commit 0c3091d

Browse files
committed
Upgrade to latest foundatio 13.0.1
1 parent 9745517 commit 0c3091d

21 files changed

Lines changed: 27 additions & 27 deletions

src/Exceptionless.Core/Exceptionless.Core.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
<ItemGroup>
2323
<PackageReference Include="Exceptionless.DateTimeExtensions" Version="6.0.1" />
2424
<PackageReference Include="Exceptionless.RandomData" Version="2.0.1" />
25-
<PackageReference Include="Foundatio.Extensions.Hosting" Version="13.0.0" />
26-
<PackageReference Include="Foundatio.JsonNet" Version="13.0.0" />
25+
<PackageReference Include="Foundatio.Extensions.Hosting" Version="13.0.1" />
26+
<PackageReference Include="Foundatio.JsonNet" Version="13.0.1" />
2727
<PackageReference Include="MiniValidation" Version="0.10.0" />
2828
<PackageReference Include="NEST.JsonNetSerializer" Version="7.17.5" />
2929
<PackageReference Include="Handlebars.Net" Version="2.1.6" />
@@ -34,7 +34,7 @@
3434
<PackageReference Include="Stripe.net" Version="51.1.0" />
3535
<PackageReference Include="System.DirectoryServices" Version="10.0.7" />
3636
<PackageReference Include="UAParser" Version="3.1.47" />
37-
<PackageReference Include="Foundatio.Repositories.Elasticsearch" Version="7.18.1" Condition="'$(ReferenceFoundatioRepositoriesSource)' == '' OR '$(ReferenceFoundatioRepositoriesSource)' == 'false'" />
37+
<PackageReference Include="Foundatio.Repositories.Elasticsearch" Version="7.18.2" Condition="'$(ReferenceFoundatioRepositoriesSource)' == '' OR '$(ReferenceFoundatioRepositoriesSource)' == 'false'" />
3838
<ProjectReference
3939
Include="..\..\..\..\Foundatio\Foundatio.Repositories\src\Foundatio.Repositories.Elasticsearch\Foundatio.Repositories.Elasticsearch.csproj"
4040
Condition="'$(ReferenceFoundatioRepositoriesSource)' == 'true'" />

src/Exceptionless.Core/Jobs/CleanupDataJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ ILoggerFactory loggerFactory
6363

6464
protected override Task<ILock?> GetLockAsync(CancellationToken cancellationToken = default)
6565
{
66-
return _lockProvider.AcquireAsync(nameof(CleanupDataJob), TimeSpan.FromMinutes(15), cancellationToken);
66+
return _lockProvider.TryAcquireAsync(nameof(CleanupDataJob), TimeSpan.FromMinutes(15), cancellationToken);
6767
}
6868

6969
protected override async Task<JobResult> RunInternalAsync(JobContext context)

src/Exceptionless.Core/Jobs/CleanupOrphanedDataJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ILoggerFactory loggerFactory
4444

4545
protected override Task<ILock?> GetLockAsync(CancellationToken cancellationToken = default)
4646
{
47-
return _lockProvider.AcquireAsync(nameof(CleanupOrphanedDataJob), TimeSpan.FromHours(2), cancellationToken);
47+
return _lockProvider.TryAcquireAsync(nameof(CleanupOrphanedDataJob), TimeSpan.FromHours(2), cancellationToken);
4848
}
4949

5050
protected override async Task<JobResult> RunInternalAsync(JobContext context)

src/Exceptionless.Core/Jobs/CloseInactiveSessionsJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ILoggerFactory loggerFactory
3838

3939
protected override Task<ILock?> GetLockAsync(CancellationToken cancellationToken = default)
4040
{
41-
return _lockProvider.AcquireAsync(nameof(CloseInactiveSessionsJob), TimeSpan.FromMinutes(15), cancellationToken);
41+
return _lockProvider.TryAcquireAsync(nameof(CloseInactiveSessionsJob), TimeSpan.FromMinutes(15), cancellationToken);
4242
}
4343

4444
protected override async Task<JobResult> RunInternalAsync(JobContext context)

src/Exceptionless.Core/Jobs/DailySummaryJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ILoggerFactory loggerFactory
5353

5454
protected override Task<ILock?> GetLockAsync(CancellationToken cancellationToken = default)
5555
{
56-
return _lockProvider.AcquireAsync(nameof(DailySummaryJob), TimeSpan.FromHours(1), cancellationToken);
56+
return _lockProvider.TryAcquireAsync(nameof(DailySummaryJob), TimeSpan.FromHours(1), cancellationToken);
5757
}
5858

5959
protected override async Task<JobResult> RunInternalAsync(JobContext context)

src/Exceptionless.Core/Jobs/DownloadGeoIPDatabaseJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ILoggerFactory loggerFactory
3232

3333
protected override Task<ILock?> GetLockAsync(CancellationToken cancellationToken = default)
3434
{
35-
return _lockProvider.AcquireAsync(nameof(DownloadGeoIPDatabaseJob), TimeSpan.FromHours(2), cancellationToken);
35+
return _lockProvider.TryAcquireAsync(nameof(DownloadGeoIPDatabaseJob), TimeSpan.FromHours(2), cancellationToken);
3636
}
3737

3838
protected override async Task<JobResult> RunInternalAsync(JobContext context)

src/Exceptionless.Core/Jobs/EventUsageJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ILoggerFactory loggerFactory
2626

2727
protected override Task<ILock?> GetLockAsync(CancellationToken cancellationToken = default)
2828
{
29-
return _lockProvider.AcquireAsync(nameof(EventUsageJob), TimeSpan.FromMinutes(4), cancellationToken);
29+
return _lockProvider.TryAcquireAsync(nameof(EventUsageJob), TimeSpan.FromMinutes(4), cancellationToken);
3030
}
3131

3232
protected override async Task<JobResult> RunInternalAsync(JobContext context)

src/Exceptionless.Core/Jobs/StackEventCountJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ILoggerFactory loggerFactory
2727

2828
protected override Task<ILock?> GetLockAsync(CancellationToken cancellationToken = default)
2929
{
30-
return _lockProvider.AcquireAsync(nameof(StackEventCountJob), TimeSpan.FromSeconds(5), cancellationToken);
30+
return _lockProvider.TryAcquireAsync(nameof(StackEventCountJob), TimeSpan.FromSeconds(5), cancellationToken);
3131
}
3232

3333
protected override async Task<JobResult> RunInternalAsync(JobContext context)

src/Exceptionless.Core/Jobs/StackStatusJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ILoggerFactory loggerFactory
2929

3030
protected override Task<ILock?> GetLockAsync(CancellationToken cancellationToken = default)
3131
{
32-
return _lockProvider.AcquireAsync(nameof(StackStatusJob), TimeSpan.FromSeconds(10), cancellationToken);
32+
return _lockProvider.TryAcquireAsync(nameof(StackStatusJob), TimeSpan.FromSeconds(10), cancellationToken);
3333
}
3434

3535
protected override async Task<JobResult> RunInternalAsync(JobContext context)

src/Exceptionless.Core/Jobs/WorkItemHandlers/FixStackStatsWorkItemHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public FixStackStatsWorkItemHandler(IStackRepository stackRepository, IEventRepo
2828

2929
public override Task<ILock?> GetWorkItemLockAsync(object workItem, CancellationToken cancellationToken = default)
3030
{
31-
return _lockProvider.AcquireAsync(nameof(FixStackStatsWorkItemHandler), TimeSpan.FromHours(1), cancellationToken);
31+
return _lockProvider.TryAcquireAsync(nameof(FixStackStatsWorkItemHandler), TimeSpan.FromHours(1), cancellationToken);
3232
}
3333

3434
public override async Task HandleItemAsync(WorkItemContext context)

0 commit comments

Comments
 (0)