Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
<AssemblyOriginatorKeyFile>..\Polly.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
</Project>
4 changes: 1 addition & 3 deletions src/Polly.Benchmarks/Bulkhead.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Threading;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes;

namespace Polly.Benchmarks;

Expand Down
5 changes: 1 addition & 4 deletions src/Polly.Benchmarks/Cache.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes;
using Microsoft.Extensions.Caching.Memory;
using Polly.Caching;

Expand Down
5 changes: 1 addition & 4 deletions src/Polly.Benchmarks/CircuitBreaker.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes;

namespace Polly.Benchmarks;

Expand Down
4 changes: 1 addition & 3 deletions src/Polly.Benchmarks/Fallback.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes;

namespace Polly.Benchmarks;

Expand Down
4 changes: 1 addition & 3 deletions src/Polly.Benchmarks/NoOp.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Threading;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes;

namespace Polly.Benchmarks;

Expand Down
5 changes: 1 addition & 4 deletions src/Polly.Benchmarks/PolicyWrap.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes;

namespace Polly.Benchmarks;

Expand Down
4 changes: 1 addition & 3 deletions src/Polly.Benchmarks/RateLimit.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes;

namespace Polly.Benchmarks;

Expand Down
5 changes: 1 addition & 4 deletions src/Polly.Benchmarks/Retry.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes;

namespace Polly.Benchmarks;

Expand Down
5 changes: 1 addition & 4 deletions src/Polly.Benchmarks/Timeout.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes;

namespace Polly.Benchmarks;

Expand Down
6 changes: 1 addition & 5 deletions src/Polly.Benchmarks/Workloads.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;

namespace Polly.Benchmarks;
namespace Polly.Benchmarks;

internal static class Workloads
{
Expand Down
12 changes: 1 addition & 11 deletions src/Polly.Specs/Bulkhead/BulkheadAsyncSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using Polly.Bulkhead;
using Polly.Specs.Helpers.Bulkhead;
using FluentAssertions;
using Polly.Utilities;
using Xunit;
using Xunit.Abstractions;

namespace Polly.Specs.Bulkhead;
namespace Polly.Specs.Bulkhead;

[Collection(Helpers.Constants.ParallelThreadDependentTestCollection)]
public class BulkheadAsyncSpecs : BulkheadSpecsBase
Expand Down
5 changes: 1 addition & 4 deletions src/Polly.Specs/Bulkhead/BulkheadScenarios.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System.Collections;
using System.Collections.Generic;

namespace Polly.Specs.Bulkhead;
namespace Polly.Specs.Bulkhead;

/// <summary>
/// A set of test scenarios used in all BulkheadPolicy tests.
Expand Down
10 changes: 1 addition & 9 deletions src/Polly.Specs/Bulkhead/BulkheadSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
using System;
using System.Threading.Tasks;
using Polly.Bulkhead;
using Polly.Specs.Helpers.Bulkhead;
using FluentAssertions;
using Xunit;
using Xunit.Abstractions;

namespace Polly.Specs.Bulkhead;
namespace Polly.Specs.Bulkhead;

[Collection(Helpers.Constants.ParallelThreadDependentTestCollection)]
public class BulkheadSpecs : BulkheadSpecsBase
Expand Down
13 changes: 1 addition & 12 deletions src/Polly.Specs/Bulkhead/BulkheadSpecsBase.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
using System;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
using Polly.Bulkhead;
using Polly.Specs.Helpers.Bulkhead;
using Xunit;
using Xunit.Abstractions;

namespace Polly.Specs.Bulkhead;
namespace Polly.Specs.Bulkhead;

[Collection(Helpers.Constants.ParallelThreadDependentTestCollection)]
public abstract class BulkheadSpecsBase : IDisposable
Expand Down
13 changes: 1 addition & 12 deletions src/Polly.Specs/Bulkhead/BulkheadTResultAsyncSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using Polly.Bulkhead;
using Polly.Specs.Helpers;
using Polly.Specs.Helpers.Bulkhead;
using FluentAssertions;
using Polly.Utilities;
using Xunit;
using Xunit.Abstractions;

namespace Polly.Specs.Bulkhead;
namespace Polly.Specs.Bulkhead;

[Collection(Constants.ParallelThreadDependentTestCollection)]
public class BulkheadTResultAsyncSpecs : BulkheadSpecsBase
Expand Down
13 changes: 1 addition & 12 deletions src/Polly.Specs/Bulkhead/BulkheadTResultSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using Polly.Bulkhead;
using Polly.Specs.Helpers;
using Polly.Specs.Helpers.Bulkhead;

using FluentAssertions;
using Xunit;
using Xunit.Abstractions;

namespace Polly.Specs.Bulkhead;
namespace Polly.Specs.Bulkhead;

[Collection(Constants.ParallelThreadDependentTestCollection)]
public class BulkheadTResultSpecs : BulkheadSpecsBase
Expand Down
6 changes: 1 addition & 5 deletions src/Polly.Specs/Bulkhead/IBulkheadPolicySpecs.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using FluentAssertions;
using Polly.Bulkhead;
using Xunit;

namespace Polly.Specs.Bulkhead;
namespace Polly.Specs.Bulkhead;

public class IBulkheadPolicySpecs
{
Expand Down
9 changes: 1 addition & 8 deletions src/Polly.Specs/Caching/AbsoluteTtlSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
using System;
using FluentAssertions;
using Polly.Caching;
using Polly.Specs.Helpers;
using Polly.Utilities;
using Xunit;

namespace Polly.Specs.Caching;
namespace Polly.Specs.Caching;

[Collection(Constants.SystemClockDependentTestCollection)]
public class AbsoluteTtlSpecs : IDisposable
Expand Down
12 changes: 1 addition & 11 deletions src/Polly.Specs/Caching/CacheAsyncSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
using Polly.Caching;
using Polly.Specs.Helpers;
using Polly.Specs.Helpers.Caching;
using Polly.Utilities;
using Xunit;

namespace Polly.Specs.Caching;
namespace Polly.Specs.Caching;

[Collection(Constants.SystemClockDependentTestCollection)]
public class CacheAsyncSpecs : IDisposable
Expand Down
12 changes: 1 addition & 11 deletions src/Polly.Specs/Caching/CacheSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
using System;
using System.Threading;
using FluentAssertions;
using Polly.Caching;
using Polly.Specs.Helpers;
using Polly.Specs.Helpers.Caching;
using Polly.Utilities;
using Polly.Wrap;
using Xunit;

namespace Polly.Specs.Caching;
namespace Polly.Specs.Caching;

[Collection(Constants.SystemClockDependentTestCollection)]
public class CacheSpecs : IDisposable
Expand Down
12 changes: 1 addition & 11 deletions src/Polly.Specs/Caching/CacheTResultAsyncSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
using Polly.Caching;
using Polly.Specs.Helpers;
using Polly.Specs.Helpers.Caching;
using Polly.Utilities;
using Xunit;

namespace Polly.Specs.Caching;
namespace Polly.Specs.Caching;

[Collection(Constants.SystemClockDependentTestCollection)]
public class CacheTResultAsyncSpecs : IDisposable
Expand Down
12 changes: 1 addition & 11 deletions src/Polly.Specs/Caching/CacheTResultSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
using System;
using System.Threading;
using FluentAssertions;
using Polly.Caching;
using Polly.Specs.Helpers;
using Polly.Specs.Helpers.Caching;
using Polly.Utilities;
using Polly.Wrap;
using Xunit;

namespace Polly.Specs.Caching;
namespace Polly.Specs.Caching;

[Collection(Constants.SystemClockDependentTestCollection)]
public class CacheTResultSpecs : IDisposable
Expand Down
8 changes: 1 addition & 7 deletions src/Polly.Specs/Caching/ContextualTtlSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using FluentAssertions;
using Polly.Caching;
using Xunit;

namespace Polly.Specs.Caching;
namespace Polly.Specs.Caching;

public class ContextualTtlSpecs
{
Expand Down
6 changes: 1 addition & 5 deletions src/Polly.Specs/Caching/DefaultCacheKeyStrategySpecs.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using FluentAssertions;
using Polly.Caching;
using Xunit;

namespace Polly.Specs.Caching;
namespace Polly.Specs.Caching;

public class DefaultCacheKeyStrategySpecs
{
Expand Down
12 changes: 1 addition & 11 deletions src/Polly.Specs/Caching/GenericCacheProviderAsyncSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
using Polly.Caching;
using Polly.Specs.Helpers;
using Polly.Specs.Helpers.Caching;
using Polly.Utilities;
using Xunit;

namespace Polly.Specs.Caching;
namespace Polly.Specs.Caching;

[Collection(Constants.SystemClockDependentTestCollection)]
public class GenericCacheProviderAsyncSpecs : IDisposable
Expand Down
10 changes: 1 addition & 9 deletions src/Polly.Specs/Caching/GenericCacheProviderSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
using System;
using FluentAssertions;
using Polly.Caching;
using Polly.Specs.Helpers;
using Polly.Specs.Helpers.Caching;
using Polly.Utilities;
using Xunit;

namespace Polly.Specs.Caching;
namespace Polly.Specs.Caching;

[Collection(Constants.SystemClockDependentTestCollection)]
public class GenericCacheProviderSpecs : IDisposable
Expand Down
8 changes: 1 addition & 7 deletions src/Polly.Specs/Caching/RelativeTtlSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using FluentAssertions;
using Polly.Caching;
using Polly.Utilities;
using Xunit;

namespace Polly.Specs.Caching;
namespace Polly.Specs.Caching;

public class RelativeTtlSpecs
{
Expand Down
7 changes: 1 addition & 6 deletions src/Polly.Specs/Caching/ResultTtlSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using FluentAssertions;
using Polly.Caching;
using Xunit;

namespace Polly.Specs.Caching;
namespace Polly.Specs.Caching;

public class ResultTtlSpecs
{
Expand Down
11 changes: 1 addition & 10 deletions src/Polly.Specs/Caching/SerializingCacheProviderAsyncSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
using Polly.Caching;
using Polly.Specs.Helpers;
using Polly.Specs.Helpers.Caching;
using Xunit;

namespace Polly.Specs.Caching;
namespace Polly.Specs.Caching;

public class AsyncSerializingCacheProviderSpecs
{
Expand Down
9 changes: 1 addition & 8 deletions src/Polly.Specs/Caching/SerializingCacheProviderSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
using System;
using FluentAssertions;
using Polly.Caching;
using Polly.Specs.Helpers;
using Polly.Specs.Helpers.Caching;
using Xunit;

namespace Polly.Specs.Caching;
namespace Polly.Specs.Caching;

public class SerializingCacheProviderSpecs
{
Expand Down
7 changes: 1 addition & 6 deletions src/Polly.Specs/Caching/SlidingTtlSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using FluentAssertions;
using Polly.Caching;
using Xunit;

namespace Polly.Specs.Caching;
namespace Polly.Specs.Caching;

public class SlidingTtlSpecs
{
Expand Down
Loading