1 type derived from IdentityErrorDescriber
Microsoft.AspNetCore.Identity.Test (1)
UserManagerTest.cs (1)
1778public class TestErrorDescriber : IdentityErrorDescriber
26 instantiations of IdentityErrorDescriber
Microsoft.AspNetCore.Identity.EntityFrameworkCore (3)
RoleStore.cs (1)
90ErrorDescriber = describer ?? new IdentityErrorDescriber();
UserOnlyStore.cs (1)
96public UserOnlyStore(TContext context, IdentityErrorDescriber? describer = null) : base(describer ?? new IdentityErrorDescriber())
UserStore.cs (1)
111public UserStore(TContext context, IdentityErrorDescriber? describer = null) : base(describer ?? new IdentityErrorDescriber())
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (9)
src\Identity\test\Shared\MockHelpers.cs (3)
30new IdentityErrorDescriber(), null); 47new IdentityErrorDescriber(), null, 61new IdentityErrorDescriber(),
UserStoreTest.cs (6)
233IdentityResultAssert.IsFailure(await manager2.UpdateAsync(user2), new IdentityErrorDescriber().ConcurrencyFailure()); 262IdentityResultAssert.IsFailure(await manager2.UpdateAsync(user2), new IdentityErrorDescriber().ConcurrencyFailure()); 292IdentityResultAssert.IsFailure(await manager2.DeleteAsync(user2), new IdentityErrorDescriber().ConcurrencyFailure()); 323IdentityResultAssert.IsFailure(await manager2.UpdateAsync(role2), new IdentityErrorDescriber().ConcurrencyFailure()); 353IdentityResultAssert.IsFailure(await manager2.UpdateAsync(role2), new IdentityErrorDescriber().ConcurrencyFailure()); 383IdentityResultAssert.IsFailure(await manager2.DeleteAsync(role2), new IdentityErrorDescriber().ConcurrencyFailure());
Microsoft.AspNetCore.Identity.InMemory.Test (3)
src\Identity\test\Shared\MockHelpers.cs (3)
30new IdentityErrorDescriber(), null); 47new IdentityErrorDescriber(), null, 61new IdentityErrorDescriber(),
Microsoft.AspNetCore.Identity.Specification.Tests (1)
UserManagerSpecificationTests.cs (1)
37protected readonly IdentityErrorDescriber _errorDescriber = new IdentityErrorDescriber();
Microsoft.AspNetCore.Identity.Test (7)
RoleValidatorTest.cs (1)
35IdentityResultAssert.IsFailure(result, new IdentityErrorDescriber().InvalidRoleName(input));
src\Identity\test\Shared\MockHelpers.cs (3)
30new IdentityErrorDescriber(), null); 47new IdentityErrorDescriber(), null, 61new IdentityErrorDescriber(),
UserManagerTest.cs (2)
432IdentityResultAssert.IsFailure(result, new IdentityErrorDescriber().UserAlreadyInRole("B")); 496IdentityResultAssert.IsFailure(result, new IdentityErrorDescriber().UserNotInRole("B"));
UserValidatorTest.cs (1)
35IdentityResultAssert.IsFailure(result, new IdentityErrorDescriber().InvalidUserName(input));
Microsoft.Extensions.Identity.Core (3)
PasswordValidator.cs (1)
24Describer = errors ?? new IdentityErrorDescriber();
RoleValidator.cs (1)
23Describer = errors ?? new IdentityErrorDescriber();
UserValidator.cs (1)
25Describer = errors ?? new IdentityErrorDescriber();
71 references to IdentityErrorDescriber
Microsoft.AspNetCore.Identity (5)
AspNetRoleManager.cs (2)
23/// <param name="errors">The <see cref="IdentityErrorDescriber"/> used to provider error messages.</param> 29IdentityErrorDescriber errors,
AspNetUserManager.cs (2)
28/// <param name="errors">The <see cref="IdentityErrorDescriber"/> used to provider error messages.</param> 37IdentityErrorDescriber errors,
IdentityServiceCollectionExtensions.cs (1)
99services.TryAddScoped<IdentityErrorDescriber>();
Microsoft.AspNetCore.Identity.EntityFrameworkCore (28)
RoleStore.cs (10)
22/// <param name="describer">The <see cref="IdentityErrorDescriber"/>.</param> 23public RoleStore(DbContext context, IdentityErrorDescriber? describer = null) : base(context, describer) { } 39/// <param name="describer">The <see cref="IdentityErrorDescriber"/>.</param> 40public RoleStore(TContext context, IdentityErrorDescriber? describer = null) : base(context, describer) { } 60/// <param name="describer">The <see cref="IdentityErrorDescriber"/>.</param> 61public RoleStore(TContext context, IdentityErrorDescriber? describer = null) : base(context, describer) { } 85/// <param name="describer">The <see cref="IdentityErrorDescriber"/>.</param> 86public RoleStore(TContext context, IdentityErrorDescriber? describer = null) 101/// Gets or sets the <see cref="IdentityErrorDescriber"/> for any error that occurred with the current operation. 103public IdentityErrorDescriber ErrorDescriber { get; set; }
UserOnlyStore.cs (8)
20/// <param name="describer">The <see cref="IdentityErrorDescriber"/>.</param> 21public UserOnlyStore(DbContext context, IdentityErrorDescriber? describer = null) : base(context, describer) { } 37/// <param name="describer">The <see cref="IdentityErrorDescriber"/>.</param> 38public UserOnlyStore(TContext context, IdentityErrorDescriber? describer = null) : base(context, describer) { } 56/// <param name="describer">The <see cref="IdentityErrorDescriber"/>.</param> 57public UserOnlyStore(TContext context, IdentityErrorDescriber? describer = null) : base(context, describer) { } 95/// <param name="describer">The <see cref="IdentityErrorDescriber"/> used to describe store errors.</param> 96public UserOnlyStore(TContext context, IdentityErrorDescriber? describer = null) : base(describer ?? new IdentityErrorDescriber())
UserStore.cs (10)
22/// <param name="describer">The <see cref="IdentityErrorDescriber"/>.</param> 23public UserStore(DbContext context, IdentityErrorDescriber? describer = null) : base(context, describer) { } 37/// <param name="describer">The <see cref="IdentityErrorDescriber"/>.</param> 38public UserStore(DbContext context, IdentityErrorDescriber? describer = null) : base(context, describer) { } 56/// <param name="describer">The <see cref="IdentityErrorDescriber"/>.</param> 57public UserStore(TContext context, IdentityErrorDescriber? describer = null) : base(context, describer) { } 77/// <param name="describer">The <see cref="IdentityErrorDescriber"/>.</param> 78public UserStore(TContext context, IdentityErrorDescriber? describer = null) : base(context, describer) { } 110/// <param name="describer">The <see cref="IdentityErrorDescriber"/> used to describe store errors.</param> 111public UserStore(TContext context, IdentityErrorDescriber? describer = null) : base(describer ?? new IdentityErrorDescriber())
Microsoft.AspNetCore.Identity.Specification.Tests (1)
UserManagerSpecificationTests.cs (1)
37protected readonly IdentityErrorDescriber _errorDescriber = new IdentityErrorDescriber();
Microsoft.AspNetCore.Identity.Test (1)
UserManagerTest.cs (1)
1748.AddSingleton<IdentityErrorDescriber>(describer)
Microsoft.Extensions.Identity.Core (26)
IdentityBuilder.cs (3)
100/// Adds an <see cref="IdentityErrorDescriber"/>. 104public virtual IdentityBuilder AddErrorDescriber<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TDescriber>() where TDescriber : IdentityErrorDescriber 106Services.AddScoped<IdentityErrorDescriber, TDescriber>();
IdentityServiceCollectionExtensions.cs (1)
46services.TryAddScoped<IdentityErrorDescriber>();
PasswordValidator.cs (5)
21/// <param name="errors">The <see cref="IdentityErrorDescriber"/> to retrieve error text from.</param> 22public PasswordValidator(IdentityErrorDescriber? errors = null) 28/// Gets the <see cref="IdentityErrorDescriber"/> used to supply error text. 30/// <value>The <see cref="IdentityErrorDescriber"/> used to supply error text.</value> 31public IdentityErrorDescriber Describer { get; private set; }
RoleManager.cs (5)
36/// <param name="errors">The <see cref="IdentityErrorDescriber"/> used to provider error messages.</param> 41IdentityErrorDescriber errors, 80/// Gets the <see cref="IdentityErrorDescriber"/> used to provider error messages. 83/// The <see cref="IdentityErrorDescriber"/> used to provider error messages. 85public IdentityErrorDescriber ErrorDescriber { get; set; }
RoleValidator.cs (3)
20/// <param name="errors">The <see cref="IdentityErrorDescriber"/> used to provider error messages.</param> 21public RoleValidator(IdentityErrorDescriber? errors = null) 26private IdentityErrorDescriber Describer { get; set; }
UserManager.cs (4)
66/// <param name="errors">The <see cref="IdentityErrorDescriber"/> used to provider error messages.</param> 75IdentityErrorDescriber errors, 170/// The <see cref="IdentityErrorDescriber"/> used to generate error messages. 172public IdentityErrorDescriber ErrorDescriber { get; set; }
UserValidator.cs (5)
22/// <param name="errors">The <see cref="IdentityErrorDescriber"/> used to provider error messages.</param> 23public UserValidator(IdentityErrorDescriber? errors = null) 29/// Gets the <see cref="IdentityErrorDescriber"/> used to provider error messages for the current <see cref="UserValidator{TUser}"/>. 31/// <value>The <see cref="IdentityErrorDescriber"/> used to provider error messages for the current <see cref="UserValidator{TUser}"/>.</value> 32public IdentityErrorDescriber Describer { get; private set; }
Microsoft.Extensions.Identity.Stores (10)
RoleStoreBase.cs (4)
34/// <param name="describer">The <see cref="IdentityErrorDescriber"/>.</param> 35public RoleStoreBase(IdentityErrorDescriber describer) 45/// Gets or sets the <see cref="IdentityErrorDescriber"/> for any error that occurred with the current operation. 47public IdentityErrorDescriber ErrorDescriber { get; set; }
UserStoreBase.cs (6)
46/// <param name="describer">The <see cref="IdentityErrorDescriber"/> used to describe store errors.</param> 47public UserStoreBase(IdentityErrorDescriber describer) 57/// Gets or sets the <see cref="IdentityErrorDescriber"/> for any error that occurred with the current operation. 59public IdentityErrorDescriber ErrorDescriber { get; set; } 1012/// <param name="describer">The <see cref="IdentityErrorDescriber"/> used to describe store errors.</param> 1013public UserStoreBase(IdentityErrorDescriber describer) : base(describer) { }