Class UserNameChangeResult
Result of SetUserNameAsync(string, string, CancellationToken). The local write has always completed when this is returned — a failure there throws instead.
public sealed record UserNameChangeResult : IEquatable<UserNameChangeResult>
- Inheritance
-
UserNameChangeResult
- Implements
- Inherited Members
Remarks
DirectoryUpdated false with no DirectoryError is the ordinary case: the
write was never attempted, because o.Blazor.WriteNameToDirectory is off or the user is not
linked to a directory account. That is not a failure and should not be reported as one.
Constructors
UserNameChangeResult(bool, string)
Result of SetUserNameAsync(string, string, CancellationToken). The local write has always completed when this is returned — a failure there throws instead.
public UserNameChangeResult(bool DirectoryUpdated = false, string DirectoryError = null)
Parameters
DirectoryUpdatedboolTrue when the name was also written to the external directory.
DirectoryErrorstringWhen a directory write was attempted and failed, the reason. The local write is not rolled back. The two succeed and fail independently, and coupling them would let a directory outage block renaming a user in this application.
Remarks
DirectoryUpdated false with no DirectoryError is the ordinary case: the
write was never attempted, because o.Blazor.WriteNameToDirectory is off or the user is not
linked to a directory account. That is not a failure and should not be reported as one.
Properties
DirectoryError
When a directory write was attempted and failed, the reason. The local write is not rolled back. The two succeed and fail independently, and coupling them would let a directory outage block renaming a user in this application.
public string DirectoryError { get; init; }
Property Value
DirectoryUpdated
True when the name was also written to the external directory.
public bool DirectoryUpdated { get; init; }