Browse Source

Rename IOpenIddictTokenStore.SetTokenTypeAsync() to SetTypeAsync()

pull/711/head
Kévin Chalet 7 years ago
parent
commit
38092df0ac
  1. 2
      src/OpenIddict.Abstractions/Stores/IOpenIddictTokenStore.cs
  2. 2
      src/OpenIddict.Core/Managers/OpenIddictTokenManager.cs
  3. 2
      src/OpenIddict.EntityFramework/Stores/OpenIddictTokenStore.cs
  4. 2
      src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictTokenStore.cs
  5. 2
      src/OpenIddict.MongoDb/Stores/OpenIddictTokenStore.cs

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

@ -456,7 +456,7 @@ namespace OpenIddict.Abstractions
/// <returns>
/// A <see cref="Task"/> that can be used to monitor the asynchronous operation.
/// </returns>
Task SetTokenTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken);
Task SetTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken);
/// <summary>
/// Updates an existing token.

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

@ -1024,7 +1024,7 @@ namespace OpenIddict.Core
await Store.SetReferenceIdAsync(token, descriptor.ReferenceId, cancellationToken);
await Store.SetStatusAsync(token, descriptor.Status, cancellationToken);
await Store.SetSubjectAsync(token, descriptor.Subject, cancellationToken);
await Store.SetTokenTypeAsync(token, descriptor.Type, cancellationToken);
await Store.SetTypeAsync(token, descriptor.Type, cancellationToken);
}
/// <summary>

2
src/OpenIddict.EntityFramework/Stores/OpenIddictTokenStore.cs

@ -1140,7 +1140,7 @@ namespace OpenIddict.EntityFramework
/// <returns>
/// A <see cref="Task"/> that can be used to monitor the asynchronous operation.
/// </returns>
public virtual Task SetTokenTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken)
public virtual Task SetTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken)
{
if (token == null)
{

2
src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictTokenStore.cs

@ -1265,7 +1265,7 @@ namespace OpenIddict.EntityFrameworkCore
/// <returns>
/// A <see cref="Task"/> that can be used to monitor the asynchronous operation.
/// </returns>
public virtual Task SetTokenTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken)
public virtual Task SetTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken)
{
if (token == null)
{

2
src/OpenIddict.MongoDb/Stores/OpenIddictTokenStore.cs

@ -949,7 +949,7 @@ namespace OpenIddict.MongoDb
/// <returns>
/// A <see cref="Task"/> that can be used to monitor the asynchronous operation.
/// </returns>
public virtual Task SetTokenTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken)
public virtual Task SetTypeAsync([NotNull] TToken token, [CanBeNull] string type, CancellationToken cancellationToken)
{
if (token == null)
{

Loading…
Cancel
Save