Share via


ConversationAddressComparer Class

Definition

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)

Applies to