Browse Source

Update the code base to use implicit global usings

pull/1339/head
Kévin Chalet 4 years ago
parent
commit
deee5e5b92
  1. 1
      Directory.Build.props
  2. 4
      OpenIddict.sln
  3. 6
      samples/Mvc.Client/Controllers/HomeController.cs
  4. 5
      samples/Mvc.Client/Program.cs
  5. 4
      samples/Mvc.Client/Startup.cs
  6. 7
      shared/OpenIddict.Extensions/Helpers/OpenIddictHelpers.cs
  7. 6
      shared/OpenIddict.Extensions/OpenIddict.Extensions.csproj
  8. 4
      src/OpenIddict.Abstractions/Caches/IOpenIddictApplicationCache.cs
  9. 3
      src/OpenIddict.Abstractions/Caches/IOpenIddictAuthorizationCache.cs
  10. 3
      src/OpenIddict.Abstractions/Caches/IOpenIddictScopeCache.cs
  11. 4
      src/OpenIddict.Abstractions/Caches/IOpenIddictTokenCache.cs
  12. 4
      src/OpenIddict.Abstractions/Descriptors/OpenIddictApplicationDescriptor.cs
  13. 4
      src/OpenIddict.Abstractions/Descriptors/OpenIddictAuthorizationDescriptor.cs
  14. 4
      src/OpenIddict.Abstractions/Descriptors/OpenIddictScopeDescriptor.cs
  15. 4
      src/OpenIddict.Abstractions/Descriptors/OpenIddictTokenDescriptor.cs
  16. 5
      src/OpenIddict.Abstractions/Managers/IOpenIddictApplicationManager.cs
  17. 5
      src/OpenIddict.Abstractions/Managers/IOpenIddictAuthorizationManager.cs
  18. 5
      src/OpenIddict.Abstractions/Managers/IOpenIddictScopeManager.cs
  19. 5
      src/OpenIddict.Abstractions/Managers/IOpenIddictTokenManager.cs
  20. 6
      src/OpenIddict.Abstractions/OpenIddict.Abstractions.csproj
  21. 1
      src/OpenIddict.Abstractions/OpenIddictBuilder.cs
  22. 3
      src/OpenIddict.Abstractions/OpenIddictExceptions.cs
  23. 2
      src/OpenIddict.Abstractions/OpenIddictExtensions.cs
  24. 2
      src/OpenIddict.Abstractions/Primitives/OpenIddictConverter.cs
  25. 6
      src/OpenIddict.Abstractions/Primitives/OpenIddictExtensions.cs
  26. 5
      src/OpenIddict.Abstractions/Primitives/OpenIddictMessage.cs
  27. 5
      src/OpenIddict.Abstractions/Primitives/OpenIddictParameter.cs
  28. 1
      src/OpenIddict.Abstractions/Primitives/OpenIddictRequest.cs
  29. 1
      src/OpenIddict.Abstractions/Primitives/OpenIddictResponse.cs
  30. 4
      src/OpenIddict.Abstractions/Resolvers/IOpenIddictApplicationStoreResolver.cs
  31. 4
      src/OpenIddict.Abstractions/Resolvers/IOpenIddictAuthorizationStoreResolver.cs
  32. 4
      src/OpenIddict.Abstractions/Resolvers/IOpenIddictScopeStoreResolver.cs
  33. 4
      src/OpenIddict.Abstractions/Resolvers/IOpenIddictTokenStoreResolver.cs
  34. 5
      src/OpenIddict.Abstractions/Stores/IOpenIddictApplicationStore.cs
  35. 5
      src/OpenIddict.Abstractions/Stores/IOpenIddictAuthorizationStore.cs
  36. 5
      src/OpenIddict.Abstractions/Stores/IOpenIddictScopeStore.cs
  37. 5
      src/OpenIddict.Abstractions/Stores/IOpenIddictTokenStore.cs
  38. 6
      src/OpenIddict.Core/Caches/OpenIddictApplicationCache.cs
  39. 6
      src/OpenIddict.Core/Caches/OpenIddictAuthorizationCache.cs
  40. 7
      src/OpenIddict.Core/Caches/OpenIddictScopeCache.cs
  41. 6
      src/OpenIddict.Core/Caches/OpenIddictTokenCache.cs
  42. 8
      src/OpenIddict.Core/Managers/OpenIddictApplicationManager.cs
  43. 8
      src/OpenIddict.Core/Managers/OpenIddictAuthorizationManager.cs
  44. 8
      src/OpenIddict.Core/Managers/OpenIddictScopeManager.cs
  45. 8
      src/OpenIddict.Core/Managers/OpenIddictTokenManager.cs
  46. 6
      src/OpenIddict.Core/OpenIddict.Core.csproj
  47. 3
      src/OpenIddict.Core/OpenIddictCoreBuilder.cs
  48. 3
      src/OpenIddict.Core/OpenIddictCoreExtensions.cs
  49. 2
      src/OpenIddict.Core/OpenIddictCoreOptions.cs
  50. 5
      src/OpenIddict.Core/Resolvers/OpenIddictApplicationStoreResolver.cs
  51. 5
      src/OpenIddict.Core/Resolvers/OpenIddictAuthorizationStoreResolver.cs
  52. 5
      src/OpenIddict.Core/Resolvers/OpenIddictScopeStoreResolver.cs
  53. 5
      src/OpenIddict.Core/Resolvers/OpenIddictTokenStoreResolver.cs
  54. 4
      src/OpenIddict.EntityFramework.Models/OpenIddict.EntityFramework.Models.csproj
  55. 2
      src/OpenIddict.EntityFramework.Models/OpenIddictEntityFrameworkApplication.cs
  56. 2
      src/OpenIddict.EntityFramework.Models/OpenIddictEntityFrameworkAuthorization.cs
  57. 1
      src/OpenIddict.EntityFramework.Models/OpenIddictEntityFrameworkScope.cs
  58. 1
      src/OpenIddict.EntityFramework.Models/OpenIddictEntityFrameworkToken.cs
  59. 1
      src/OpenIddict.EntityFramework/Configurations/OpenIddictEntityFrameworkApplicationConfiguration.cs
  60. 1
      src/OpenIddict.EntityFramework/Configurations/OpenIddictEntityFrameworkAuthorizationConfiguration.cs
  61. 1
      src/OpenIddict.EntityFramework/Configurations/OpenIddictEntityFrameworkScopeConfiguration.cs
  62. 1
      src/OpenIddict.EntityFramework/Configurations/OpenIddictEntityFrameworkTokenConfiguration.cs
  63. 7
      src/OpenIddict.EntityFramework/OpenIddict.EntityFramework.csproj
  64. 3
      src/OpenIddict.EntityFramework/OpenIddictEntityFrameworkBuilder.cs
  65. 1
      src/OpenIddict.EntityFramework/OpenIddictEntityFrameworkExtensions.cs
  66. 3
      src/OpenIddict.EntityFramework/OpenIddictEntityFrameworkHelpers.cs
  67. 3
      src/OpenIddict.EntityFramework/OpenIddictEntityFrameworkOptions.cs
  68. 3
      src/OpenIddict.EntityFramework/Resolvers/OpenIddictEntityFrameworkApplicationStoreResolver.cs
  69. 3
      src/OpenIddict.EntityFramework/Resolvers/OpenIddictEntityFrameworkAuthorizationStoreResolver.cs
  70. 3
      src/OpenIddict.EntityFramework/Resolvers/OpenIddictEntityFrameworkScopeStoreResolver.cs
  71. 3
      src/OpenIddict.EntityFramework/Resolvers/OpenIddictEntityFrameworkTokenStoreResolver.cs
  72. 9
      src/OpenIddict.EntityFramework/Stores/OpenIddictEntityFrameworkApplicationStore.cs
  73. 10
      src/OpenIddict.EntityFramework/Stores/OpenIddictEntityFrameworkAuthorizationStore.cs
  74. 9
      src/OpenIddict.EntityFramework/Stores/OpenIddictEntityFrameworkScopeStore.cs
  75. 10
      src/OpenIddict.EntityFramework/Stores/OpenIddictEntityFrameworkTokenStore.cs
  76. 4
      src/OpenIddict.EntityFrameworkCore.Models/OpenIddict.EntityFrameworkCore.Models.csproj
  77. 2
      src/OpenIddict.EntityFrameworkCore.Models/OpenIddictEntityFrameworkCoreApplication.cs
  78. 2
      src/OpenIddict.EntityFrameworkCore.Models/OpenIddictEntityFrameworkCoreAuthorization.cs
  79. 1
      src/OpenIddict.EntityFrameworkCore.Models/OpenIddictEntityFrameworkCoreScope.cs
  80. 1
      src/OpenIddict.EntityFrameworkCore.Models/OpenIddictEntityFrameworkCoreToken.cs
  81. 2
      src/OpenIddict.EntityFrameworkCore/Configurations/OpenIddictEntityFrameworkCoreApplicationConfiguration.cs
  82. 2
      src/OpenIddict.EntityFrameworkCore/Configurations/OpenIddictEntityFrameworkCoreAuthorizationConfiguration.cs
  83. 2
      src/OpenIddict.EntityFrameworkCore/Configurations/OpenIddictEntityFrameworkCoreScopeConfiguration.cs
  84. 2
      src/OpenIddict.EntityFrameworkCore/Configurations/OpenIddictEntityFrameworkCoreTokenConfiguration.cs
  85. 9
      src/OpenIddict.EntityFrameworkCore/OpenIddict.EntityFrameworkCore.csproj
  86. 3
      src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreBuilder.cs
  87. 4
      src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreCustomizer.cs
  88. 1
      src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreExtensions.cs
  89. 6
      src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreHelpers.cs
  90. 3
      src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreOptions.cs
  91. 3
      src/OpenIddict.EntityFrameworkCore/Resolvers/OpenIddictEntityFrameworkCoreApplicationStoreResolver.cs
  92. 3
      src/OpenIddict.EntityFrameworkCore/Resolvers/OpenIddictEntityFrameworkCoreAuthorizationStoreResolver.cs
  93. 3
      src/OpenIddict.EntityFrameworkCore/Resolvers/OpenIddictEntityFrameworkCoreScopeStoreResolver.cs
  94. 3
      src/OpenIddict.EntityFrameworkCore/Resolvers/OpenIddictEntityFrameworkCoreTokenStoreResolver.cs
  95. 11
      src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictEntityFrameworkCoreApplicationStore.cs
  96. 12
      src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictEntityFrameworkCoreAuthorizationStore.cs
  97. 9
      src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictEntityFrameworkCoreScopeStore.cs
  98. 12
      src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictEntityFrameworkCoreTokenStore.cs
  99. 6
      src/OpenIddict.MongoDb.Models/OpenIddict.MongoDb.Models.csproj
  100. 4
      src/OpenIddict.MongoDb.Models/OpenIddictMongoDbApplication.cs

1
Directory.Build.props

@ -9,6 +9,7 @@
<NoWarn>$(NoWarn);CS1591;NU5118;NU5128</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

4
OpenIddict.sln

@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.28606.126
# Visual Studio Version 17
VisualStudioVersion = 17.0.31710.8
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{D544447C-D701-46BB-9A5B-C76C612A596B}"
EndProject

6
samples/Mvc.Client/Controllers/HomeController.cs

@ -1,8 +1,4 @@
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
using System.Net.Http.Headers;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authorization;

5
samples/Mvc.Client/Program.cs

@ -1,7 +1,4 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
namespace Mvc.Client;
namespace Mvc.Client;
public static class Program
{

4
samples/Mvc.Client/Startup.cs

@ -1,10 +1,6 @@
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.IdentityModel.Protocols.OpenIdConnect;
namespace Mvc.Client;

7
shared/OpenIddict.Extensions/Helpers/OpenIddictHelpers.cs

@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.Extensions;
namespace OpenIddict.Extensions;
/// <summary>
/// Exposes common helpers used by the OpenIddict assemblies.

6
shared/OpenIddict.Extensions/OpenIddict.Extensions.csproj

@ -9,4 +9,10 @@
<ProjectReference Include="..\..\src\OpenIddict.Abstractions\OpenIddict.Abstractions.csproj" />
</ItemGroup>
<ItemGroup>
<Using Include="OpenIddict.Abstractions" />
<Using Include="OpenIddict.Abstractions.OpenIddictConstants" Static="true" />
<Using Include="OpenIddict.Abstractions.OpenIddictResources" Alias="SR" />
</ItemGroup>
</Project>

4
src/OpenIddict.Abstractions/Caches/IOpenIddictApplicationCache.cs

@ -4,10 +4,6 @@
* the license and the contributors participating to this project.
*/
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace OpenIddict.Abstractions;
/// <summary>

3
src/OpenIddict.Abstractions/Caches/IOpenIddictAuthorizationCache.cs

@ -4,10 +4,7 @@
* the license and the contributors participating to this project.
*/
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
namespace OpenIddict.Abstractions;

3
src/OpenIddict.Abstractions/Caches/IOpenIddictScopeCache.cs

@ -4,10 +4,7 @@
* the license and the contributors participating to this project.
*/
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
namespace OpenIddict.Abstractions;

4
src/OpenIddict.Abstractions/Caches/IOpenIddictTokenCache.cs

@ -4,10 +4,6 @@
* the license and the contributors participating to this project.
*/
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace OpenIddict.Abstractions;
/// <summary>

4
src/OpenIddict.Abstractions/Descriptors/OpenIddictApplicationDescriptor.cs

@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Globalization;
using System.Text.Json;
namespace OpenIddict.Abstractions;

4
src/OpenIddict.Abstractions/Descriptors/OpenIddictAuthorizationDescriptor.cs

@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Security.Claims;
using System.Security.Claims;
using System.Text.Json;
namespace OpenIddict.Abstractions;

4
src/OpenIddict.Abstractions/Descriptors/OpenIddictScopeDescriptor.cs

@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Globalization;
using System.Text.Json;
namespace OpenIddict.Abstractions;

4
src/OpenIddict.Abstractions/Descriptors/OpenIddictTokenDescriptor.cs

@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Security.Claims;
using System.Security.Claims;
using System.Text.Json;
namespace OpenIddict.Abstractions;

5
src/OpenIddict.Abstractions/Managers/IOpenIddictApplicationManager.cs

@ -4,15 +4,10 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Linq;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
namespace OpenIddict.Abstractions;

5
src/OpenIddict.Abstractions/Managers/IOpenIddictAuthorizationManager.cs

@ -4,15 +4,10 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Security.Claims;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
namespace OpenIddict.Abstractions;

5
src/OpenIddict.Abstractions/Managers/IOpenIddictScopeManager.cs

@ -4,15 +4,10 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Linq;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
namespace OpenIddict.Abstractions;

5
src/OpenIddict.Abstractions/Managers/IOpenIddictTokenManager.cs

@ -4,14 +4,9 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
namespace OpenIddict.Abstractions;

6
src/OpenIddict.Abstractions/OpenIddict.Abstractions.csproj

@ -35,4 +35,10 @@
<EmbeddedResource Update="**\*.resx" GenerateSource="true" GenerateResourcesCodeAsConstants="true" />
</ItemGroup>
<ItemGroup>
<Using Include="OpenIddict.Abstractions" />
<Using Include="OpenIddict.Abstractions.OpenIddictConstants" Static="true" />
<Using Include="OpenIddict.Abstractions.OpenIddictResources" Alias="SR" />
</ItemGroup>
</Project>

1
src/OpenIddict.Abstractions/OpenIddictBuilder.cs

@ -4,7 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using System.ComponentModel;
namespace Microsoft.Extensions.DependencyInjection;

3
src/OpenIddict.Abstractions/OpenIddictExceptions.cs

@ -1,5 +1,4 @@
using System;
using System.Collections.Immutable;
using System.Collections.Immutable;
using System.ComponentModel.DataAnnotations;
namespace OpenIddict.Abstractions;

2
src/OpenIddict.Abstractions/OpenIddictExtensions.cs

@ -4,8 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
namespace Microsoft.Extensions.DependencyInjection;
/// <summary>

2
src/OpenIddict.Abstractions/Primitives/OpenIddictConverter.cs

@ -4,10 +4,8 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Text.Json;
using System.Text.Json.Serialization;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.Abstractions;

6
src/OpenIddict.Abstractions/Primitives/OpenIddictExtensions.cs

@ -4,20 +4,14 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Text.Encodings.Web;
using System.Text.Json;
using Microsoft.Extensions.Primitives;
using static OpenIddict.Abstractions.OpenIddictConstants;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.Abstractions;

5
src/OpenIddict.Abstractions/Primitives/OpenIddictMessage.cs

@ -4,18 +4,13 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Text.Json.Serialization;
using Microsoft.Extensions.Primitives;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.Abstractions;

5
src/OpenIddict.Abstractions/Primitives/OpenIddictParameter.cs

@ -4,17 +4,12 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.Encodings.Web;
using System.Text.Json;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.Abstractions;

1
src/OpenIddict.Abstractions/Primitives/OpenIddictRequest.cs

@ -4,7 +4,6 @@
* the license and the contributors participating to this project.
*/
using System.Collections.Generic;
using System.Diagnostics;
using System.Text.Json;
using System.Text.Json.Serialization;

1
src/OpenIddict.Abstractions/Primitives/OpenIddictResponse.cs

@ -4,7 +4,6 @@
* the license and the contributors participating to this project.
*/
using System.Collections.Generic;
using System.Diagnostics;
using System.Text.Json;
using System.Text.Json.Serialization;

4
src/OpenIddict.Abstractions/Resolvers/IOpenIddictApplicationStoreResolver.cs

@ -1,6 +1,4 @@
using System;
namespace OpenIddict.Abstractions;
namespace OpenIddict.Abstractions;
/// <summary>
/// Exposes a method allowing to resolve an application store.

4
src/OpenIddict.Abstractions/Resolvers/IOpenIddictAuthorizationStoreResolver.cs

@ -1,6 +1,4 @@
using System;
namespace OpenIddict.Abstractions;
namespace OpenIddict.Abstractions;
/// <summary>
/// Exposes a method allowing to resolve an authorization store.

4
src/OpenIddict.Abstractions/Resolvers/IOpenIddictScopeStoreResolver.cs

@ -1,6 +1,4 @@
using System;
namespace OpenIddict.Abstractions;
namespace OpenIddict.Abstractions;
/// <summary>
/// Exposes a method allowing to resolve a scope store.

4
src/OpenIddict.Abstractions/Resolvers/IOpenIddictTokenStoreResolver.cs

@ -1,6 +1,4 @@
using System;
namespace OpenIddict.Abstractions;
namespace OpenIddict.Abstractions;
/// <summary>
/// Exposes a method allowing to resolve a token store.

5
src/OpenIddict.Abstractions/Stores/IOpenIddictApplicationStore.cs

@ -4,14 +4,9 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Globalization;
using System.Linq;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
namespace OpenIddict.Abstractions;

5
src/OpenIddict.Abstractions/Stores/IOpenIddictAuthorizationStore.cs

@ -4,13 +4,8 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
namespace OpenIddict.Abstractions;

5
src/OpenIddict.Abstractions/Stores/IOpenIddictScopeStore.cs

@ -4,14 +4,9 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Globalization;
using System.Linq;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
namespace OpenIddict.Abstractions;

5
src/OpenIddict.Abstractions/Stores/IOpenIddictTokenStore.cs

@ -4,13 +4,8 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
namespace OpenIddict.Abstractions;

6
src/OpenIddict.Core/Caches/OpenIddictApplicationCache.cs

@ -4,18 +4,12 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
using Microsoft.Extensions.Primitives;
using OpenIddict.Abstractions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.Core;

6
src/OpenIddict.Core/Caches/OpenIddictAuthorizationCache.cs

@ -4,18 +4,12 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
using Microsoft.Extensions.Primitives;
using OpenIddict.Abstractions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.Core;

7
src/OpenIddict.Core/Caches/OpenIddictScopeCache.cs

@ -4,19 +4,12 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
using Microsoft.Extensions.Primitives;
using OpenIddict.Abstractions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.Core;

6
src/OpenIddict.Core/Caches/OpenIddictTokenCache.cs

@ -4,18 +4,12 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
using Microsoft.Extensions.Primitives;
using OpenIddict.Abstractions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.Core;

8
src/OpenIddict.Core/Managers/OpenIddictApplicationManager.cs

@ -4,25 +4,17 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Buffers.Binary;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Security.Cryptography;
using System.Text;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using static OpenIddict.Abstractions.OpenIddictConstants;
using SR = OpenIddict.Abstractions.OpenIddictResources;
#if !SUPPORTS_KEY_DERIVATION_WITH_SPECIFIED_HASH_ALGORITHM
using Org.BouncyCastle.Crypto;

8
src/OpenIddict.Core/Managers/OpenIddictAuthorizationManager.cs

@ -4,23 +4,15 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Security.Claims;
using System.Text;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using static OpenIddict.Abstractions.OpenIddictConstants;
using static OpenIddict.Abstractions.OpenIddictExceptions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.Core;

8
src/OpenIddict.Core/Managers/OpenIddictScopeManager.cs

@ -4,22 +4,14 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using static OpenIddict.Abstractions.OpenIddictConstants;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.Core;

8
src/OpenIddict.Core/Managers/OpenIddictTokenManager.cs

@ -4,23 +4,15 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Security.Cryptography;
using System.Text;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using static OpenIddict.Abstractions.OpenIddictConstants;
using static OpenIddict.Abstractions.OpenIddictExceptions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.Core;

6
src/OpenIddict.Core/OpenIddict.Core.csproj

@ -33,4 +33,10 @@
<Compile Include="..\..\shared\OpenIddict.Extensions\*\*.cs" />
</ItemGroup>
<ItemGroup>
<Using Include="OpenIddict.Abstractions" />
<Using Include="OpenIddict.Abstractions.OpenIddictConstants" Static="true" />
<Using Include="OpenIddict.Abstractions.OpenIddictResources" Alias="SR" />
</ItemGroup>
</Project>

3
src/OpenIddict.Core/OpenIddictCoreBuilder.cs

@ -4,13 +4,10 @@
* the license and the contributors participating to this project.
*/
using System;
using System.ComponentModel;
using Microsoft.Extensions.DependencyInjection.Extensions;
using OpenIddict.Abstractions;
using OpenIddict.Core;
using OpenIddict.Extensions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace Microsoft.Extensions.DependencyInjection;

3
src/OpenIddict.Core/OpenIddictCoreExtensions.cs

@ -4,11 +4,8 @@
* the license and the contributors participating to this project.
*/
using System;
using Microsoft.Extensions.DependencyInjection.Extensions;
using OpenIddict.Abstractions;
using OpenIddict.Core;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace Microsoft.Extensions.DependencyInjection;

2
src/OpenIddict.Core/OpenIddictCoreOptions.cs

@ -4,8 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
namespace OpenIddict.Core;
/// <summary>

5
src/OpenIddict.Core/Resolvers/OpenIddictApplicationStoreResolver.cs

@ -1,7 +1,4 @@
using System;
using Microsoft.Extensions.DependencyInjection;
using OpenIddict.Abstractions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
using Microsoft.Extensions.DependencyInjection;
namespace OpenIddict.Core;

5
src/OpenIddict.Core/Resolvers/OpenIddictAuthorizationStoreResolver.cs

@ -1,7 +1,4 @@
using System;
using Microsoft.Extensions.DependencyInjection;
using OpenIddict.Abstractions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
using Microsoft.Extensions.DependencyInjection;
namespace OpenIddict.Core;

5
src/OpenIddict.Core/Resolvers/OpenIddictScopeStoreResolver.cs

@ -1,7 +1,4 @@
using System;
using Microsoft.Extensions.DependencyInjection;
using OpenIddict.Abstractions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
using Microsoft.Extensions.DependencyInjection;
namespace OpenIddict.Core;

5
src/OpenIddict.Core/Resolvers/OpenIddictTokenStoreResolver.cs

@ -1,7 +1,4 @@
using System;
using Microsoft.Extensions.DependencyInjection;
using OpenIddict.Abstractions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
using Microsoft.Extensions.DependencyInjection;
namespace OpenIddict.Core;

4
src/OpenIddict.EntityFramework.Models/OpenIddict.EntityFramework.Models.csproj

@ -9,4 +9,8 @@
<PackageTags>$(PackageTags);entityframework;models</PackageTags>
</PropertyGroup>
<ItemGroup>
<Using Remove="System.Net.Http" />
</ItemGroup>
</Project>

2
src/OpenIddict.EntityFramework.Models/OpenIddictEntityFrameworkApplication.cs

@ -4,8 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace OpenIddict.EntityFramework.Models;

2
src/OpenIddict.EntityFramework.Models/OpenIddictEntityFrameworkAuthorization.cs

@ -4,8 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace OpenIddict.EntityFramework.Models;

1
src/OpenIddict.EntityFramework.Models/OpenIddictEntityFrameworkScope.cs

@ -4,7 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Diagnostics;
namespace OpenIddict.EntityFramework.Models;

1
src/OpenIddict.EntityFramework.Models/OpenIddictEntityFrameworkToken.cs

@ -4,7 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Diagnostics;
namespace OpenIddict.EntityFramework.Models;

1
src/OpenIddict.EntityFramework/Configurations/OpenIddictEntityFrameworkApplicationConfiguration.cs

@ -4,7 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Infrastructure.Annotations;

1
src/OpenIddict.EntityFramework/Configurations/OpenIddictEntityFrameworkAuthorizationConfiguration.cs

@ -4,7 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using System.ComponentModel;
using System.Data.Entity.ModelConfiguration;
using OpenIddict.EntityFramework.Models;

1
src/OpenIddict.EntityFramework/Configurations/OpenIddictEntityFrameworkScopeConfiguration.cs

@ -4,7 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Infrastructure.Annotations;

1
src/OpenIddict.EntityFramework/Configurations/OpenIddictEntityFrameworkTokenConfiguration.cs

@ -4,7 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Infrastructure.Annotations;

7
src/OpenIddict.EntityFramework/OpenIddict.EntityFramework.csproj

@ -22,4 +22,11 @@
<Compile Include="..\..\shared\OpenIddict.Extensions\*\*.cs" />
</ItemGroup>
<ItemGroup>
<Using Include="OpenIddict.Abstractions" />
<Using Include="OpenIddict.Abstractions.OpenIddictConstants" Static="true" />
<Using Include="OpenIddict.Abstractions.OpenIddictResources" Alias="SR" />
<Using Include="System.Data.Entity" />
</ItemGroup>
</Project>

3
src/OpenIddict.EntityFramework/OpenIddictEntityFrameworkBuilder.cs

@ -4,14 +4,11 @@
* the license and the contributors participating to this project.
*/
using System;
using System.ComponentModel;
using System.Data.Entity;
using Microsoft.Extensions.DependencyInjection.Extensions;
using OpenIddict.Core;
using OpenIddict.EntityFramework;
using OpenIddict.EntityFramework.Models;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace Microsoft.Extensions.DependencyInjection;

1
src/OpenIddict.EntityFramework/OpenIddictEntityFrameworkExtensions.cs

@ -4,7 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using Microsoft.Extensions.DependencyInjection.Extensions;
using OpenIddict.EntityFramework;
using OpenIddict.EntityFramework.Models;

3
src/OpenIddict.EntityFramework/OpenIddictEntityFrameworkHelpers.cs

@ -4,10 +4,7 @@
* the license and the contributors participating to this project.
*/
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
using Microsoft.Extensions.DependencyInjection;
using OpenIddict.EntityFramework;
using OpenIddict.EntityFramework.Models;

3
src/OpenIddict.EntityFramework/OpenIddictEntityFrameworkOptions.cs

@ -4,9 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Data.Entity;
namespace OpenIddict.EntityFramework;
/// <summary>

3
src/OpenIddict.EntityFramework/Resolvers/OpenIddictEntityFrameworkApplicationStoreResolver.cs

@ -4,14 +4,11 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Concurrent;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFramework.Models;
using OpenIddict.Extensions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFramework;

3
src/OpenIddict.EntityFramework/Resolvers/OpenIddictEntityFrameworkAuthorizationStoreResolver.cs

@ -4,14 +4,11 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Concurrent;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFramework.Models;
using OpenIddict.Extensions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFramework;

3
src/OpenIddict.EntityFramework/Resolvers/OpenIddictEntityFrameworkScopeStoreResolver.cs

@ -4,14 +4,11 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Concurrent;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFramework.Models;
using OpenIddict.Extensions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFramework;

3
src/OpenIddict.EntityFramework/Resolvers/OpenIddictEntityFrameworkTokenStoreResolver.cs

@ -4,14 +4,11 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Concurrent;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFramework.Models;
using OpenIddict.Extensions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFramework;

9
src/OpenIddict.EntityFramework/Stores/OpenIddictEntityFrameworkApplicationStore.cs

@ -4,27 +4,18 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFramework.Models;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFramework;

10
src/OpenIddict.EntityFramework/Stores/OpenIddictEntityFrameworkAuthorizationStore.cs

@ -4,27 +4,17 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFramework.Models;
using static OpenIddict.Abstractions.OpenIddictConstants;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFramework;

9
src/OpenIddict.EntityFramework/Stores/OpenIddictEntityFrameworkScopeStore.cs

@ -4,26 +4,17 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFramework.Models;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFramework;

10
src/OpenIddict.EntityFramework/Stores/OpenIddictEntityFrameworkTokenStore.cs

@ -4,26 +4,16 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFramework.Models;
using static OpenIddict.Abstractions.OpenIddictConstants;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFramework;

4
src/OpenIddict.EntityFrameworkCore.Models/OpenIddict.EntityFrameworkCore.Models.csproj

@ -9,4 +9,8 @@
<PackageTags>$(PackageTags);entityframeworkcore;models</PackageTags>
</PropertyGroup>
<ItemGroup>
<Using Remove="System.Net.Http" />
</ItemGroup>
</Project>

2
src/OpenIddict.EntityFrameworkCore.Models/OpenIddictEntityFrameworkCoreApplication.cs

@ -4,8 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace OpenIddict.EntityFrameworkCore.Models;

2
src/OpenIddict.EntityFrameworkCore.Models/OpenIddictEntityFrameworkCoreAuthorization.cs

@ -4,8 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace OpenIddict.EntityFrameworkCore.Models;

1
src/OpenIddict.EntityFrameworkCore.Models/OpenIddictEntityFrameworkCoreScope.cs

@ -4,7 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Diagnostics;
namespace OpenIddict.EntityFrameworkCore.Models;

1
src/OpenIddict.EntityFrameworkCore.Models/OpenIddictEntityFrameworkCoreToken.cs

@ -4,7 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Diagnostics;
namespace OpenIddict.EntityFrameworkCore.Models;

2
src/OpenIddict.EntityFrameworkCore/Configurations/OpenIddictEntityFrameworkCoreApplicationConfiguration.cs

@ -4,9 +4,7 @@
* the license and the contributors participating to this project.
*/
using System;
using System.ComponentModel;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using OpenIddict.EntityFrameworkCore.Models;

2
src/OpenIddict.EntityFrameworkCore/Configurations/OpenIddictEntityFrameworkCoreAuthorizationConfiguration.cs

@ -4,9 +4,7 @@
* the license and the contributors participating to this project.
*/
using System;
using System.ComponentModel;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using OpenIddict.EntityFrameworkCore.Models;

2
src/OpenIddict.EntityFrameworkCore/Configurations/OpenIddictEntityFrameworkCoreScopeConfiguration.cs

@ -4,9 +4,7 @@
* the license and the contributors participating to this project.
*/
using System;
using System.ComponentModel;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using OpenIddict.EntityFrameworkCore.Models;

2
src/OpenIddict.EntityFrameworkCore/Configurations/OpenIddictEntityFrameworkCoreTokenConfiguration.cs

@ -4,9 +4,7 @@
* the license and the contributors participating to this project.
*/
using System;
using System.ComponentModel;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using OpenIddict.EntityFrameworkCore.Models;

9
src/OpenIddict.EntityFrameworkCore/OpenIddict.EntityFrameworkCore.csproj

@ -22,4 +22,13 @@
<Compile Include="..\..\shared\OpenIddict.Extensions\*\*.cs" />
</ItemGroup>
<ItemGroup>
<Using Include="OpenIddict.Abstractions" />
<Using Include="OpenIddict.Abstractions.OpenIddictConstants" Static="true" />
<Using Include="OpenIddict.Abstractions.OpenIddictResources" Alias="SR" />
<Using Include="Microsoft.EntityFrameworkCore" />
<Using Include="Microsoft.EntityFrameworkCore.Infrastructure" />
<Using Include="Microsoft.EntityFrameworkCore.Storage" />
</ItemGroup>
</Project>

3
src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreBuilder.cs

@ -4,13 +4,10 @@
* the license and the contributors participating to this project.
*/
using System;
using System.ComponentModel;
using Microsoft.EntityFrameworkCore;
using OpenIddict.Core;
using OpenIddict.EntityFrameworkCore;
using OpenIddict.EntityFrameworkCore.Models;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace Microsoft.Extensions.DependencyInjection;

4
src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreCustomizer.cs

@ -4,9 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using OpenIddict.EntityFrameworkCore.Models;
namespace OpenIddict.EntityFrameworkCore;
@ -27,6 +24,7 @@ public class OpenIddictEntityFrameworkCoreCustomizer<TApplication, TAuthorizatio
{
}
/// <inheritdoc/>
public override void Customize(ModelBuilder modelBuilder, DbContext context)
{
if (modelBuilder is null)

1
src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreExtensions.cs

@ -4,7 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using Microsoft.Extensions.DependencyInjection.Extensions;
using OpenIddict.EntityFrameworkCore;
using OpenIddict.EntityFrameworkCore.Models;

6
src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreHelpers.cs

@ -4,13 +4,7 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.Extensions.DependencyInjection;
using OpenIddict.EntityFrameworkCore;
using OpenIddict.EntityFrameworkCore.Models;

3
src/OpenIddict.EntityFrameworkCore/OpenIddictEntityFrameworkCoreOptions.cs

@ -4,9 +4,6 @@
* the license and the contributors participating to this project.
*/
using System;
using Microsoft.EntityFrameworkCore;
namespace OpenIddict.EntityFrameworkCore;
/// <summary>

3
src/OpenIddict.EntityFrameworkCore/Resolvers/OpenIddictEntityFrameworkCoreApplicationStoreResolver.cs

@ -4,14 +4,11 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Concurrent;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFrameworkCore.Models;
using OpenIddict.Extensions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFrameworkCore;

3
src/OpenIddict.EntityFrameworkCore/Resolvers/OpenIddictEntityFrameworkCoreAuthorizationStoreResolver.cs

@ -4,14 +4,11 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Concurrent;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFrameworkCore.Models;
using OpenIddict.Extensions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFrameworkCore;

3
src/OpenIddict.EntityFrameworkCore/Resolvers/OpenIddictEntityFrameworkCoreScopeStoreResolver.cs

@ -4,14 +4,11 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Concurrent;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFrameworkCore.Models;
using OpenIddict.Extensions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFrameworkCore;

3
src/OpenIddict.EntityFrameworkCore/Resolvers/OpenIddictEntityFrameworkCoreTokenStoreResolver.cs

@ -4,14 +4,11 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Concurrent;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFrameworkCore.Models;
using OpenIddict.Extensions;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFrameworkCore;

11
src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictEntityFrameworkCoreApplicationStore.cs

@ -4,28 +4,17 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel;
using System.Data;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFrameworkCore.Models;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFrameworkCore;

12
src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictEntityFrameworkCoreAuthorizationStore.cs

@ -4,28 +4,16 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel;
using System.Data;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFrameworkCore.Models;
using static OpenIddict.Abstractions.OpenIddictConstants;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFrameworkCore;

9
src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictEntityFrameworkCoreScopeStore.cs

@ -4,25 +4,16 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFrameworkCore.Models;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFrameworkCore;

12
src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictEntityFrameworkCoreTokenStore.cs

@ -4,27 +4,15 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel;
using System.Data;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
using OpenIddict.Abstractions;
using OpenIddict.EntityFrameworkCore.Models;
using static OpenIddict.Abstractions.OpenIddictConstants;
using SR = OpenIddict.Abstractions.OpenIddictResources;
namespace OpenIddict.EntityFrameworkCore;

6
src/OpenIddict.MongoDb.Models/OpenIddict.MongoDb.Models.csproj

@ -16,4 +16,10 @@
<PackageReference Include="System.Collections.Immutable" />
</ItemGroup>
<ItemGroup>
<Using Include="MongoDB.Bson" />
<Using Include="MongoDB.Bson.Serialization.Attributes" />
<Using Remove="System.Net.Http" />
</ItemGroup>
</Project>

4
src/OpenIddict.MongoDb.Models/OpenIddictMongoDbApplication.cs

@ -4,13 +4,9 @@
* the license and the contributors participating to this project.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Globalization;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace OpenIddict.MongoDb.Models;

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save