ConversationAddressComparer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compare two Address instances for equality, excluding the user information.
public sealed class ConversationAddressComparer : System.Collections.Generic.IEqualityComparer<Microsoft.Bot.Builder.Dialogs.IAddress>
type ConversationAddressComparer = class
interface IEqualityComparer<IAddress>
Public NotInheritable Class ConversationAddressComparer
Implements IEqualityComparer(Of IAddress)
- Inheritance
-
ConversationAddressComparer
- Implements
Remarks
This equality comparer excludes the user from the Address identity so that dialog execution can be serialized by conversation, thereby making it less likely to encounter 412 "precondition failed" when updating the bot state data bags with optimistic concurrency. Updates to the user's data bags may still conflict across multiple conversations.
Constructors
ConversationAddressComparer() |
Explicit Interface Implementations
IEqualityComparer<IAddress>.Equals(IAddress, IAddress) | |
IEqualityComparer<IAddress>.GetHashCode(IAddress) |